Hibernate example source code file (basic_mapping.po)
This example Hibernate source code file (basic_mapping.po) is included in the DevDaily.com
"Java Source Code
Warehouse " project. The intent of this project is to help you "Learn Java by Example " TM .
The Hibernate basic_mapping.po source code
# translation of Collection_Mapping.po to
# Xi HUANG <xhuang@redhat.com>, 2007, 2010.
msgid ""
msgstr ""
"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2011-01-21 21:18+0000\n"
"PO-Revision-Date: 2010-01-06 10:49+1000\n"
"Last-Translator: Xi HUANG <xhuang@redhat.com>\n"
"Language-Team: <en@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:31
#, no-c-format
msgid "Basic O/R Mapping"
msgstr "基本的㪠O/R マッピング"
#. Tag: title
#: basic_mapping.xml:34
#, no-c-format
msgid "Mapping declaration"
msgstr "マッピング定義"
#. Tag: para
#: basic_mapping.xml:36
#, no-c-format
msgid "Object/relational mappings can be defined in three approaches:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:41
#, no-c-format
msgid "using Java 5 annotations (via the Java Persistence 2 annotations)"
msgstr ""
#. Tag: para
#: basic_mapping.xml:46
#, no-c-format
msgid "using JPA 2 XML deployment descriptors (described in chapter XXX)"
msgstr ""
#. Tag: para
#: basic_mapping.xml:51
#, no-c-format
msgid "using the Hibernate legacy XML files approach known as hbm.xml"
msgstr ""
#. Tag: para
#: basic_mapping.xml:56
#, no-c-format
msgid ""
"Annotations are split in two categories, the logical mapping annotations "
"(describing the object model, the association between two entities etc.) and "
"the physical mapping annotations (describing the physical schema, tables, "
"columns, indexes, etc). We will mix annotations from both categories in the "
"following code examples."
msgstr ""
#. Tag: para
#: basic_mapping.xml:62
#, no-c-format
msgid ""
"JPA annotations are in the <literal>javax.persistence.* package. "
"Hibernate specific extensions are in <literal>org.hibernate.annotations.* attribute)."
msgstr ""
"マッピングドã‚ュメントã®å†…容を説明ã—ã¾ã™ã€‚ãŸã ã—ã€ã“ã“ã§ã¯ Hibernate ãŒå®Ÿè¡Œæ™‚"
"ã«ä½¿ã†ãƒ‰ã‚ュメントè¦ç´ ã¨å±žæ€§ã«ã¤ã„ã¦ã®ã¿èª¬æ˜Žã—ã¾ã™ã€‚マッピングドã‚ュメント"
"ã¯ã€ã„ãã¤ã‹ã®ã‚ªãƒ—ション属性ã¨è¦ç´ ã‚’å«ã‚“ã§ã„ã¾ã™ï¼ˆä¾‹ãˆã° <literal>not-null lets you define the table the entity will be "
"persisted into. If undefined, the table name is the unqualified class name "
"of the entity. You can also optionally define the catalog, the schema as "
"well as unique constraints on the table."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:112
#, no-c-format
msgid ""
"@Entity\n"
"@Table(name=\"TBL_FLIGHT\", \n"
" schema=\"AIR_COMMAND\", \n"
" uniqueConstraints=\n"
" @UniqueConstraint(\n"
" name=\"flight_number\", \n"
" columnNames={\"comp_prefix\", \"flight_number\"} ) )\n"
"public class Flight implements Serializable {\n"
" @Column(name=\"comp_prefix\")\n"
" public String getCompagnyPrefix() { return companyPrefix; }\n"
"\n"
" @Column(name=\"flight_number\")\n"
" public String getNumber() { return number; }\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:114
#, no-c-format
msgid ""
"The constraint name is optional (generated if left undefined). The column "
"names composing the constraint correspond to the column names as defined "
"before the Hibernate <classname>NamingStrategy is applied."
msgstr ""
#. Tag: para
#: basic_mapping.xml:119
#, no-c-format
msgid ""
"<literal>@Entity.name lets you define the shortcut name of the "
"entity you can used in JP-QL and HQL queries. It defaults to the unqualified "
"class name of the class."
msgstr ""
#. Tag: para
#: basic_mapping.xml:123
#, no-c-format
msgid ""
"Hibernate goes beyond the JPA specification and provide additional "
"configurations. Some of them are hosted on <classname>@org.hibernate."
"annotations.Entity</classname>:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:129
#, fuzzy, no-c-format
msgid ""
"<literal>dynamicInsert / dynamicUpdate "
"(defaults to false): specifies that <literal>INSERT / "
"<literal>UPDATE SQL should be generated at runtime and contain "
"only the columns whose values are not null. The <literal>dynamic-updatedynamic-insert settings are not inherited by "
"subclasses. Although these settings can increase performance in some cases, "
"they can actually decrease performance in others."
msgstr ""
"<literal>dynamic-update 㨠dynamic-insert ã®è¨å®š"
"ã¯ã‚µãƒ–クラスã«ç¶™æ‰¿ã•ã‚Œã¾ã›ã‚“。ãã®ãŸã‚ <literal><subclass> "
"ã‚„ <literal><joined-subclass> è¦ç´ を指定ã™ã‚‹ã“ã¨ã‚‚出æ¥ã¾ã™ã€‚"
"ã“れらã®è¨å®šã¯ãƒ‘フォーマンスをå‘上ã•ã›ã‚‹äº‹ã‚‚ã‚ã‚Šã¾ã™ãŒã€è½ã¨ã™ã“ã¨ã‚‚ã‚ã‚Šã¾ã™"
"ã®ã§ã€æ…Žé‡ã«ä½¿ç”¨ã—ã¦ãã ã•ã„。"
#. Tag: para
#: basic_mapping.xml:140
#, fuzzy, no-c-format
msgid ""
"<literal>selectBeforeUpdate (defaults to false): specifies that "
"Hibernate should <emphasis>never perform an SQL UPDATE, will Hibernate perform an extra SQL "
"<literal>SELECT to determine if an UPDATE is "
"actually required. Use of <literal>select-before-update 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."
msgstr ""
"<literal>select-before-update (オプションã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã¯ "
"<literal>false): オブジェクトãŒå¤‰æ›´ã•ã‚ŒãŸã®ãŒç¢ºå®Ÿã§ãªã„ãªã‚‰ã°ã€ "
"Hibernate ㌠SQL ã® <literal>UPDATE ã‚’ 決ã—ã¦å®Ÿè¡Œã—ãªã„ を使ã„ã€æ–°ã—ã„セッションã¨é–¢é€£ä»˜ã‘られãŸæ™‚ã "
"ã‘)〠<literal>UPDATE ãŒå®Ÿéš›ã«å¿…è¦ã‹ã©ã†ã‹ã‚’決定ã™ã‚‹ãŸã‚ã«ã€ "
"Hibernate ãŒä½™åˆ†ãª SQL ã® <literal>SELECT 文を実行ã™ã‚‹ã“ã¨ã‚’æ„味ã—"
"ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:154
#, fuzzy, no-c-format
msgid ""
"<literal>polymorphisms (defaults to IMPLICIT ): "
"determines whether implicit or explicit query polymorphisms is used. "
"<emphasis>Implicit polymorphisms 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 is appropriate. Explicit "
"polymorphisms 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 ""
" <emphasis>暗黙的 ãƒãƒªãƒ¢ãƒ¼ãƒ•ã‚£ã‚ºãƒ ã¨ã¯ã€æ¬¡ã®äºŒã¤ã‚’æ„味ã—ã¦ã„ã¾ã™ã€‚"
"一ã¤ã¯ã‚¯ãƒ©ã‚¹ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ãŒã€ã‚¹ãƒ¼ãƒ‘ークラスや実装ã—ãŸã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ã€ã¾ãŸ"
"ãã®ã‚¯ãƒ©ã‚¹ã‚’指定ã™ã‚‹ã‚¯ã‚¨ãƒªã«ã‚ˆã£ã¦è¿”ã•ã‚Œã‚‹ã“ã¨ã§ã€ã‚‚ã†ä¸€ã¤ã¯ãã®ã‚¯ãƒ©ã‚¹ã®ã‚µãƒ–"
"クラスã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ãŒã€ãã®ã‚¯ãƒ©ã‚¹è‡ªèº«ã‚’指定ã—ãŸã‚¯ã‚¨ãƒªã«ã‚ˆã£ã¦è¿”ã•ã‚Œã‚‹ã“ã¨ã§"
"ã™ã€‚ã¾ãŸã€ <emphasis>明示的 ãƒãƒªãƒ¢ãƒ¼ãƒ•ã‚£ã‚ºãƒ ã¨ã¯ã€æ¬¡ã®äºŒã¤ã‚’æ„味ã—"
"ã¦ã„ã¾ã™ã€‚一ã¤ã¯ã‚¯ãƒ©ã‚¹ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ãŒã€ãã®ã‚¯ãƒ©ã‚¹ã‚’明示的ã«æŒ‡å®šã—ãŸã‚¯ã‚¨ãƒªã«"
"よã£ã¦ã®ã¿è¿”ã•ã‚Œã‚‹ã“ã¨ã§ã€ã‚‚ã†ä¸€ã¤ã¯ã‚¯ãƒ©ã‚¹ã‚’指定ã—ãŸã‚¯ã‚¨ãƒªãŒã€ <literal><"
"class></literal> è¦ç´ ã®ä¸ã§ <subclass> ã‚„ "
"<literal><joined-subclass> ã¨ãƒžãƒƒãƒ”ングã•ã‚Œã¦ã„るサブクラスã®"
"インスタンスã ã‘ã‚’è¿”ã™ã“ã¨ã§ã™ã€‚ã»ã¨ã‚“ã©ã®ç”¨é€”ã§ã¯ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã® "
"<literal>polymorphism=\"implicit\" ãŒé©åˆ‡ã§ã™ã€‚明示的ãªãƒãƒªãƒ¢ãƒ¼ãƒ•ã‚£"
"ズムã¯ã€2ã¤ã®é•ã£ãŸã‚¯ãƒ©ã‚¹ãŒåŒã˜ãƒ†ãƒ¼ãƒ–ルã«ãƒžãƒƒãƒ”ングã•ã‚Œã¦ã„ã‚‹ã¨ãã«æœ‰ç”¨ã§ã™ "
"(ã“ã‚Œã«ã‚ˆã£ã¦ãƒ†ãƒ¼ãƒ–ルカラムã®ã‚µãƒ–セットをå«ã‚€ã€ã€Œè»½é‡ãªã€ã‚¯ãƒ©ã‚¹ãŒå¯èƒ½ã«ãªã‚Š"
"ã¾ã™ï¼‰ã€‚"
#. Tag: para
#: basic_mapping.xml:171
#, fuzzy, no-c-format
msgid ""
"<literal>persister: specifies a custom ClassPersisterpersister 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, "
"or you can even provide a completely new implementation of the interface "
"<literal>org.hibernate.persister.ClassPersister that implements, "
"for example, persistence via stored procedure calls, serialization to flat "
"files or LDAP. See <literal>org.hibernate.test.CustomPersister for "
"a simple example of \"persistence\" to a <literal>Hashtable."
msgstr ""
"<literal>persister 属性を指定ã™ã‚‹ã“ã¨ã§ã€ã‚¯ãƒ©ã‚¹ã®æ°¸ç¶šåŒ–戦略をカスタ"
"マイズã§ãã¾ã™ã€‚例ãˆã° <literal>org.hibernate.persister.EntityPersister インターフェースã®"
"完全ã«æ–°ã—ã„実装をæä¾›ã§ãã¾ã™ã€‚ç°¡å˜ãªä¾‹ã¨ã—㦠<literal>org.hibernate.test."
"CustomPersister</literal> ã‚’å‚ç…§ã—ã¦ãã ã•ã„(ã“れ㯠Hashtable (defaults to VERSION ): "
"determines the optimistic locking strategy. If you enable "
"<literal>dynamicUpdate , you will have a choice of optimistic "
"locking strategies:"
msgstr ""
"<literal>dynamic-update を有効ã«ã™ã‚Œã°ã€æ¥½è¦³ãƒãƒƒã‚¯æˆ¦ç•¥ã‚’é¸ã¶ã“ã¨ã«"
"ãªã‚Šã¾ã™ï¼š"
#. Tag: para
#: basic_mapping.xml:192
#, no-c-format
msgid "<literal>version: check the version/timestamp columns"
msgstr ""
"<literal>version ãƒãƒ¼ã‚¸ãƒ§ãƒ³/タイムスタンプカラムをãƒã‚§ãƒƒã‚¯ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:197
#, no-c-format
msgid "<literal>all: check all columns"
msgstr "<literal>all ã™ã¹ã¦ã®ã‚«ãƒ©ãƒ ã‚’ãƒã‚§ãƒƒã‚¯ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:201
#, no-c-format
msgid ""
"<literal>dirty: check the changed columns, allowing some "
"concurrent updates"
msgstr ""
"<literal>dirty 変更ã—ãŸã‚«ãƒ©ãƒ ã‚’ãƒã‚§ãƒƒã‚¯ã—ã€åŒæ™‚æ›´æ–°ã§ãるよã†ã«ã—ã¾"
"ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:206
#, no-c-format
msgid "<literal>none: do not use optimistic locking"
msgstr "<literal>none 楽観ãƒãƒƒã‚¯ã‚’使用ã—ã¾ã›ã‚“。"
#. Tag: para
#: basic_mapping.xml:211
#, no-c-format
msgid ""
"It is <emphasis>strongly 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() is used)."
msgstr ""
"Hibernate ã§æ¥½è¦³çš„ãƒãƒƒã‚¯æˆ¦ç•¥ã‚’使ã†ãªã‚‰ã€ãƒãƒ¼ã‚¸ãƒ§ãƒ³/タイムスタンプカラムを使ã†"
"ã“ã¨ã‚’ <emphasis>éžå¸¸ã« å¼·ããŠå‹§ã‚ã—ã¾ã™ã€‚楽観的ãƒãƒƒã‚¯ã¯ãƒ‘フォーマ"
"ンスã®è¦³ç‚¹ã‹ã‚‰ã‚‚最é©ã§ã‚ã‚Šã€ã•ã‚‰ã«åˆ†é›¢ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã¸ã®ä¿®æ£ (ã¤ã¾ã‚Š "
"<literal>Session.marge() ãŒä½¿ã‚れるã¨ã) ã‚’æ£ç¢ºã«æ‰±ã†ã“ã¨ã®ã§ãã‚‹"
"唯一ã®æˆ¦ç•¥ã§ã‚‚ã‚ã‚Šã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:220
#, no-c-format
msgid ""
"Be sure to import <classname>@javax.persistence.Entity to mark a "
"class as an entity. It's a common mistake to import <classname>@org."
"hibernate.annotations.Entity</classname> by accident."
msgstr ""
#. Tag: para
#: basic_mapping.xml:227
#, fuzzy, no-c-format
msgid ""
"Some entities are not mutable. They cannot be updated or deleted by the "
"application. This allows Hibernate to make some minor performance "
"optimizations.. Use the <classname>@Immutable annotation."
msgstr ""
"<literal>mutable=\"false\" 指定をã—ãŸä¸å¤‰ã‚¯ãƒ©ã‚¹ã¯ã€ã‚¢ãƒ—リケーション"
"ã«ã‚ˆã‚‹æ›´æ–°ã‚„削除ãŒå‡ºæ¥ãªã„ã“ã¨ãŒã‚ã‚Šã¾ã™ã€‚ã“ã‚Œã«ã‚ˆã‚Šã€ Hibernate ãŒãƒ‘フォーマ"
"ンスを少ã—改善ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:232
#, fuzzy, no-c-format
msgid ""
"You can also alter how Hibernate deals with lazy initialization for this "
"class. On <classname>@Proxy, use lazy =false "
"to disable lazy fetching (not recommended). You can also specify an "
"interface to use for lazy initializing proxies (defaults to the class "
"itself): use <literal>proxyClass on @Proxy . "
"Hibernate will initially return proxies (Javassist or CGLIB) 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 ""
"オプション㮠<literal>proxy 属性ã«ã‚ˆã‚Šã€ã‚¯ãƒ©ã‚¹ã®æ°¸ç¶šã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã®"
"é…延åˆæœŸåŒ–ãŒå¯èƒ½ã«ãªã‚Šã¾ã™ã€‚ Hibernate ã¯æœ€åˆã«ã€æŒ‡å®šã—ãŸã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ã‚’実"
"装ã—㟠CGLIB プãƒã‚ã‚·ã‚’è¿”ã—ã¾ã™ã€‚実際ã®æ°¸ç¶šã‚ªãƒ–ジェクトã¯ãƒ—ãƒã‚ã‚·ã®ãƒ¡ã‚½ãƒƒãƒ‰ã‚’"
"呼ã³å‡ºã™ã¨ãã«ãƒãƒ¼ãƒ‰ã—ã¾ã™ã€‚以下ã®ã€Œé…延åˆæœŸåŒ–ã®ãŸã‚ã®ãƒ—ãƒã‚ã‚·ã€ã‚’å‚ç…§ã—ã¦ã"
"ã ã•ã„。"
#. Tag: para
#: basic_mapping.xml:243
#, no-c-format
msgid ""
"<classname>@BatchSize specifies a \"batch size\" for fetching "
"instances of this class by identifier. Not yet loaded instances are loaded "
"batch-size at a time (default 1)."
msgstr ""
#. Tag: para
#: basic_mapping.xml:247
#, fuzzy, no-c-format
msgid ""
"You can specific an arbitrary SQL WHERE condition to be used when retrieving "
"objects of this class. Use <classname>@Where for that."
msgstr ""
"<literal>where (オプション): ã“ã®ã‚¯ãƒ©ã‚¹ã®ã‚ªãƒ–ジェクトを検索ã™ã‚‹"
"ã¨ãã«ä½¿ç”¨ã™ã‚‹ã€ä»»æ„ã® SQL ã® <literal>WHERE æ¡ä»¶ã‚’指定ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:251
#, fuzzy, no-c-format
msgid ""
"In the same vein, <classname>@Check lets you define an SQL "
"expression used to generate a multi-row <emphasis>check "
"constraint for automatic schema generation."
msgstr ""
"<literal>check (オプション):自動的ã«ã‚¹ã‚ーマを生æˆã™ã‚‹ãŸã‚ã«ã€è¤‡"
"数行㮠<emphasis>check 制約を生æˆã™ã‚‹ SQL å¼ã€‚"
#. Tag: para
#: basic_mapping.xml:255
#, fuzzy, 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 using <classname>@org.hibernate.annotations."
"Subselect</classname>:"
msgstr ""
"Hibernate ã®ãƒžãƒƒãƒ”ングã«ã¨ã£ã¦ãƒ“ューã¨æ™®é€šã®ãƒ†ãƒ¼ãƒ–ルã®é–“ã«é•ã„ã¯ãªãã€ãƒ‡ãƒ¼ã‚¿"
"ベースレベルã§ã¯é€éŽçš„ã§ã™ï¼ˆãŸã ã—ビューを完全ã«ã¯ã‚µãƒãƒ¼ãƒˆã—ã¦ã„ãªã„ DBMS ã‚‚"
"ã‚ã‚Šã¾ã™ã€‚特ã«ã€æ›´æ–°ã®ã‚るビューã«å¯¾ã—ã¦ã¯ãã†ã§ã™ï¼‰ã€‚ビューを使ã„ãŸãã¦ã‚‚ã€"
"データベースã§ä½œæˆã§ããªã„ã“ã¨ãŒã‚ã‚Šã¾ã™ï¼ˆä¾‹ãˆã°ã€ãƒ¬ã‚¬ã‚·ãƒ¼ã‚¹ã‚ーマã®å ´åˆï¼‰ã€‚"
"ã“ã®å ´åˆã«ã¯ã€ä¸å¤‰ã‹ã¤èªã¿å–り専用ã®ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã«ä¸Žãˆã‚‰ã‚ŒãŸ SQL ã®å‰¯å•åˆã›æ–‡"
"をマップã§ãã¾ã™ï¼š"
#. Tag: programlisting
#: basic_mapping.xml:263
#, fuzzy, no-c-format
msgid ""
"@Entity\n"
"@Subselect(\"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"
"@Synchronize( {\"item\", \"bid\"} ) //tables impacted\n"
"public class Summary {\n"
" @Id\n"
" public String getId() { return id; }\n"
" ...\n"
"}"
msgstr ""
"<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:265
#, 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> is available both as an "
"attribute and a nested mapping element."
msgstr ""
"テーブルをã“ã®ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã¨åŒæœŸã™ã‚‹ã‚ˆã†ã«å®šç¾©ã—ã¦ãã ã•ã„。オートフラッシュ"
"ãŒç¢ºå®Ÿã«èµ·ã“るよã†ã«ã€ã¾ãŸå°Žå‡ºã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã«å¯¾ã™ã‚‹ã‚¯ã‚¨ãƒªãŒå¤ã„データを返ã•ãª"
"ã„よã†ã«ã™ã‚‹ãŸã‚ã§ã™ã€‚ <literal><subselect> ã¯å±žæ€§ã¨ãƒã‚¹ãƒˆã—"
"ãŸãƒžãƒƒãƒ”ング属性ã®ã©ã¡ã‚‰ã§ã‚‚利用ã§ãã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:270
#, fuzzy, no-c-format
msgid ""
"We will now explore the same options using the hbm.xml structure. You can "
"declare a persistent class using the <literal>class element. For "
"example:"
msgstr "<literal>class è¦ç´ を使ã£ã¦ã€æ°¸ç¶šã‚¯ãƒ©ã‚¹ã‚’宣言ã§ãã¾ã™ï¼š"
#. Tag: programlisting
#: basic_mapping.xml:319
#, fuzzy, no-c-format
msgid ""
"<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 ""
"<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:323
#, no-c-format
msgid ""
"<literal>name (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 (オプション):永続クラス(ã¾ãŸã¯ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ï¼‰ã®"
"完全修飾 Java クラスå。もã—ã“ã®å±žæ€§ãŒæ¬ è½ã—ã¦ã„ã‚‹å ´åˆã€ POJO ã§ã¯ãªã„エン"
"ティティã«å¯¾ã™ã‚‹ãƒžãƒƒãƒ”ングã¨ã—ã¦æ‰±ã‚ã‚Œã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:330
#, no-c-format
msgid ""
"<literal>table (optional - defaults to the unqualified class "
"name): the name of its database table."
msgstr ""
"<literal>table (オプション - デフォルトã¯ä¿®é£¾ã•ã‚Œã¦ã„ãªã„クラス"
"å):データベーステーブルã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:335
#, no-c-format
msgid ""
"<literal>discriminator-value (optional - defaults to the class "
"name): a value that distinguishes individual subclasses that is used for "
"polymorphic behavior. Acceptable values include <literal>null and "
"<literal>not null."
msgstr ""
"<literal>discriminator-value (オプション - デフォルトã¯ã‚¯ãƒ©ã‚¹å): "
"ãƒãƒªãƒ¢ãƒ¼ãƒ•ã‚£ãƒƒã‚¯ãªæŒ¯ã‚‹èˆžã„ã«ä½¿ã‚れる個々ã®ã‚µãƒ–クラスをè˜åˆ¥ã™ã‚‹ãŸã‚ã®å€¤ã€‚値㯠"
"<literal>null ã‹ not null ã®ã„ãšã‚Œã‹ã‚’å–ã‚Šã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:343
#, no-c-format
msgid ""
"<literal>mutable (optional - defaults to true ): "
"specifies that instances of the class are (not) mutable."
msgstr ""
"<literal>mutable (オプションã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã¯ true (optional): overrides the schema name specified by "
"the root <literal><hibernate-mapping> element."
msgstr ""
"<literal>schema (オプション): ルート㮠<hibernate-"
"mapping></literal> è¦ç´ ã§æŒ‡å®šã—ãŸã‚¹ã‚ーマåをオーãƒãƒ¼ãƒ©ã‚¤ãƒ‰ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:355 basic_mapping.xml:2954
#, no-c-format
msgid ""
"<literal>catalog (optional): overrides the catalog name specified "
"by the root <literal><hibernate-mapping> element."
msgstr ""
"<literal>catalog (オプション): ルート㮠<hibernate-"
"mapping></literal> è¦ç´ ã§æŒ‡å®šã—ãŸã‚«ã‚¿ãƒã‚°åをオーãƒãƒ¼ãƒ©ã‚¤ãƒ‰ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:361
#, no-c-format
msgid ""
"<literal>proxy (optional): specifies an interface to use for lazy "
"initializing proxies. You can specify the name of the class itself."
msgstr ""
"<literal>proxy (オプション):é…延åˆæœŸåŒ–プãƒã‚ã‚·ã«ä½¿ã†ã‚¤ãƒ³ã‚¿ãƒ¼"
"フェースを指定ã—ã¾ã™ã€‚永続化ã™ã‚‹ã‚¯ãƒ©ã‚¹åãã®ã‚‚ã®ã‚’指定ã™ã‚‹ã“ã¨ã‚‚å¯èƒ½ã§ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:367
#, no-c-format
msgid ""
"<literal>dynamic-update (optional - defaults to falseUPDATE SQL should be generated "
"at runtime and can contain only those columns whose values have changed."
msgstr ""
"<literal>dynamic-update (オプション〠デフォルト㯠"
"<literal>false ):値ãŒå¤‰æ›´ã•ã‚ŒãŸã‚«ãƒ©ãƒ ã ã‘ã‚’å«ã‚€ SQL ã® "
"<literal>UPDATE 文をã€å®Ÿè¡Œæ™‚ã«ç”Ÿæˆã™ã‚‹ã“ã¨ã‚’指定ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:374
#, no-c-format
msgid ""
"<literal>dynamic-insert (optional - defaults to falseINSERT SQL should be generated "
"at runtime and contain only the columns whose values are not null."
msgstr ""
"<literal>dynamic-insert (オプション, デフォルト㯠falseINSERT (optional - defaults to "
"<literal>false ): specifies that Hibernate should neverUPDATE 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(), will "
"Hibernate perform an extra SQL <literal>SELECT to determine if an "
"<literal>UPDATE is actually required."
msgstr ""
"<literal>select-before-update (オプションã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã¯ "
"<literal>false): オブジェクトãŒå¤‰æ›´ã•ã‚ŒãŸã®ãŒç¢ºå®Ÿã§ãªã„ãªã‚‰ã°ã€ "
"Hibernate ㌠SQL ã® <literal>UPDATE ã‚’ 決ã—ã¦å®Ÿè¡Œã—ãªã„ を使ã„ã€æ–°ã—ã„セッションã¨é–¢é€£ä»˜ã‘られãŸæ™‚ã "
"ã‘)〠<literal>UPDATE ãŒå®Ÿéš›ã«å¿…è¦ã‹ã©ã†ã‹ã‚’決定ã™ã‚‹ãŸã‚ã«ã€ "
"Hibernate ãŒä½™åˆ†ãª SQL ã® <literal>SELECT 文を実行ã™ã‚‹ã“ã¨ã‚’æ„味ã—"
"ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:393
#, fuzzy, no-c-format
msgid ""
"<literal>polymorphisms (optional - defaults to implicit (オプションã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ã¯ "
"<literal>implicit ): implicit(暗黙)ã‹explicit(明示)ã®ã€ã©ã¡ã‚‰ã®"
"クエリãƒãƒªãƒ¢ãƒ¼ãƒ•ã‚£ã‚ºãƒ を使ã†ã‹æ±ºå®šã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:399
#, no-c-format
msgid ""
"<literal>where (optional): specifies an arbitrary SQL "
"<literal>WHERE condition to be used when retrieving objects of "
"this class."
msgstr ""
"<literal>where (オプション): ã“ã®ã‚¯ãƒ©ã‚¹ã®ã‚ªãƒ–ジェクトを検索ã™ã‚‹"
"ã¨ãã«ä½¿ç”¨ã™ã‚‹ã€ä»»æ„ã® SQL ã® <literal>WHERE æ¡ä»¶ã‚’指定ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:405
#, no-c-format
msgid ""
"<literal>persister (optional): specifies a custom "
"<literal>ClassPersister."
msgstr ""
"<literal>persister (オプション):カスタム"
"<literal>ClassPersister を指定ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:410
#, no-c-format
msgid ""
"<literal>batch-size (optional - defaults to 1 ): "
"specifies a \"batch size\" for fetching instances of this class by "
"identifier."
msgstr ""
"<literal>batch-size (オプションã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã¯ 1 (optional - defaults to version (オプションã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã¯ "
"<literal>version ): 楽観ãƒãƒƒã‚¯æˆ¦ç•¥ã‚’決定ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:422
#, no-c-format
msgid ""
"<literal>lazy (optional): lazy fetching can be disabled by setting "
"<literal>lazy=\"false\"."
msgstr ""
"<literal>lazy (オプション): lazy=\"false\" ã¨"
"è¨å®šã™ã‚‹ã“ã¨ã§ã€é…延フェッãƒãŒã§ããªããªã‚Šã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:427
#, fuzzy, no-c-format
msgid ""
"<literal>entity-name (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 ""
"<literal>entity-name (オプションã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã¯ã‚¯ãƒ©ã‚¹å): "
"Hibernate3 ã§ã¯ã‚¯ãƒ©ã‚¹ãŒè¤‡æ•°å›žãƒžãƒƒãƒ”ングã§ãï¼ˆå ´åˆã«ã‚ˆã£ã¦ã¯é•ã†ãƒ†ãƒ¼ãƒ–ルã«å¯¾ã—"
"ã¦ã‚‚)〠Java レベル㧠Map ã‚„ XML ã§è¡¨ç¾ã•ã‚Œã‚‹ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ãƒžãƒƒãƒ”ングãŒå¯èƒ½ã§"
"ã™ã€‚ã“れらã®å ´åˆã€ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã«å¯¾ã—ã¦ä»»æ„ã®åå‰ã‚’ã€æ˜Žç¤ºçš„ã«ä»˜ã‘ãªãã¦ã¯ãªã‚Š"
"ã¾ã›ã‚“。 詳ã—ã㯠<xref linkend=\"persistent-classes-dynamicmodels\"/> 㨠"
"<xref linkend=\"xml\"/> ã‚’å‚ç…§ã—ã¦ãã ã•ã„。"
#. Tag: para
#: basic_mapping.xml:437
#, no-c-format
msgid ""
"<literal>check (optional): an SQL expression used to generate a "
"multi-row <emphasis>check constraint for automatic schema "
"generation."
msgstr ""
"<literal>check (オプション):自動的ã«ã‚¹ã‚ーマを生æˆã™ã‚‹ãŸã‚ã«ã€è¤‡"
"数行㮠<emphasis>check 制約を生æˆã™ã‚‹ SQL å¼ã€‚"
#. Tag: para
#: basic_mapping.xml:443
#, no-c-format
msgid ""
"<literal>rowid (optional): Hibernate can use ROWIDs on databases. "
"On Oracle, for example, Hibernate can use the <literal>rowid extra "
"column for fast updates once this option has been set to <literal>rowid (オプション): Hibernate ã¯ã€ãれをサãƒãƒ¼ãƒˆã—ã¦ã„"
"るデータベース㧠ROWID 㨠呼ã°ã‚Œã‚‹ã‚‚ã®ã‚’使ã†ã“ã¨ãŒã§ãã¾ã™ã€‚例ãˆã° Oracle ã‚’"
"使ã£ã¦ã„ã‚‹ã¨ãã€ã“ã®ã‚ªãƒ—ション㫠<literal>rowid ã‚’è¨å®šã™ã‚Œã°ã€ "
"Hiberante 㯠update を高速化ã™ã‚‹ãŸã‚ã« <literal>rowid ã¨ã„ã†ç‰¹åˆ¥ãª"
"カラムを使ã†ã“ã¨ãŒã§ãã¾ã™ã€‚ ROWID ã¯è©³ç´°ãªå®Ÿè£…ã§ã‚ã‚Šã€ä¿å˜ã•ã‚ŒãŸã‚¿ãƒ—ルã®ç‰©ç†"
"çš„ãªä½ç½®ã‚’表ã—ã¦ã„ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:452
#, fuzzy, no-c-format
msgid ""
"<literal>subselect (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 (オプション):ä¸å¤‰ã‹ã¤èªã¿å–り専用ã§ã‚るエン"
"ティティをデータベースã®å‰¯å•åˆã›ï¼ˆsubselect)ã«ãƒžãƒƒãƒ”ングã—ã¾ã™ã€‚ã‚‚ã—å…ƒã®ãƒ†ãƒ¼"
"ブルã®ä»£ã‚ã‚Šã«ãƒ“ューをæŒã¡ãŸã‘ã‚Œã°æœ‰ç”¨ã§ã™ãŒã€ãã†ã§ãªã„ã®ãªã‚‰æœ‰ç”¨ã§ã¯ã‚ã‚Šã¾"
"ã›ã‚“。より詳ã—ã„æƒ…å ±ã¯ä¸‹è¨˜ã‚’å‚ç…§ã—ã¦ãã ã•ã„。"
#. Tag: para
#: basic_mapping.xml:459
#, no-c-format
msgid ""
"<literal>abstract (optional): is used to mark abstract "
"superclasses in <literal><union-subclass> hierarchies."
msgstr ""
"<literal>abstract (オプション): <union-subclass>"
"</literal> 階層内ã®æŠ½è±¡ã‚¹ãƒ¼ãƒ‘ークラスã«ãƒžãƒ¼ã‚¯ã™ã‚‹ãŸã‚ã«ä½¿ã„ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:466
#, 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 static."
msgstr ""
"永続クラスã®åå‰ã«ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ã‚’指定ã—ã¦ã‚‚ã¾ã£ãŸãå•é¡Œã‚ã‚Šã¾ã›ã‚“。ãã®ã¨"
"ã㯠<literal><subclass> è¦ç´ を使ã£ã¦ã€ãã®ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ã‚’"
"実装ã™ã‚‹ã‚¯ãƒ©ã‚¹ã‚’定義ã—ã¦ãã ã•ã„。 <emphasis>static ãªå†…部クラスã§"
"も永続化ã§ãã¾ã™ã€‚ãã®ã¨ãã¯æ¨™æº–å½¢å¼ã€ä¾‹ãˆã° <literal>eg.Foo$Bar is available both as an attribute "
"and a nested mapping element."
msgstr ""
#. Tag: title
#: basic_mapping.xml:481
#, fuzzy, no-c-format
msgid "Identifiers"
msgstr "è˜åˆ¥åã®å‰²ã‚Šå½“ã¦"
#. Tag: para
#: basic_mapping.xml:483
#, fuzzy, no-c-format
msgid ""
"Mapped classes <emphasis>must 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."
msgstr ""
"マップã•ã‚ŒãŸã‚¯ãƒ©ã‚¹ã¯ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãƒ†ãƒ¼ãƒ–ルã®ä¸»ã‚ーカラムを定義 <emphasis>ã—ãªã‘"
"ã‚Œã°ãªã‚Šã¾ã›ã‚“</emphasis> 。ã»ã¨ã‚“ã©ã®ã‚¯ãƒ©ã‚¹ã«ã¯ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã®ãƒ¦ãƒ‹ãƒ¼ã‚¯ãªè˜åˆ¥"
"åã‚’ä¿æŒã™ã‚‹ JavaBeans スタイルã®ãƒ—ãƒãƒ‘ティもæŒã£ã¦ã„ã¾ã™ã€‚ <literal><"
"id></literal> è¦ç´ ã¯ã€ãã®ãƒ—ãƒãƒ‘ティã‹ã‚‰ä¸»ã‚ーカラムã¸ã®ãƒžãƒƒãƒ”ングを定義ã—"
"ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:488
#, no-c-format
msgid "Mark the identifier property with <classname>@Id."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:491
#, no-c-format
msgid ""
"@Entity\n"
"public class Person {\n"
" @Id Integer getId() { ... }\n"
" ...\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:493
#, fuzzy, no-c-format
msgid ""
"In hbm.xml, use the <literal><id> element which defines the "
"mapping from that property to the primary key column."
msgstr ""
"<literal><column> ã‚¿ã‚°ã§ã€ãƒ—ãƒãƒ‘ティを複数ã®ã‚«ãƒ©ãƒ ã¸ãƒžãƒƒãƒ”ン"
"ã‚°ã§ãã‚‹ã“ã¨ã«æ³¨ç›®ã—ã¦ãã ã•ã„。"
#. Tag: programlisting
#: basic_mapping.xml:509
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:513
#, no-c-format
msgid ""
"<literal>name (optional): the name of the identifier property."
msgstr "<literal>name(オプション):è˜åˆ¥åプãƒãƒ‘ティã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:518 basic_mapping.xml:2152
#, no-c-format
msgid ""
"<literal>type (optional): a name that indicates the Hibernate type."
msgstr "<literal>type(オプション): Hibernate ã®åž‹ã‚’示ã™åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:523
#, no-c-format
msgid ""
"<literal>column (optional - defaults to the property name): the "
"name of the primary key column."
msgstr ""
"<literal>column(オプション - デフォルトã¯ãƒ—ãƒãƒ‘ティå): 主ã‚ーカ"
"ラムã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:528
#, no-c-format
msgid ""
"<literal>unsaved-value (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(オプション - デフォルトã®å€¤ã¯ "
"sensible ): インスタンスãŒæ–°ã—ãインスタンス化ã•ã‚ŒãŸ (セーブã•ã‚Œã¦ã„ãªã„)"
"ã“ã¨ã‚’示ã™ã€è˜åˆ¥åプãƒãƒ‘ティã®å€¤ã€‚以å‰ã® Session ã§ã‚»ãƒ¼ãƒ–ã¾ãŸã¯ãƒãƒ¼ãƒ‰ã•ã‚ŒãŸåˆ†"
"離インスタンスã¨åŒºåˆ¥ã™ã‚‹ãŸã‚ã«ä½¿ã„ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:536
#, no-c-format
msgid ""
"<literal>access (optional - defaults to property (オプション - デフォルト㯠property attribute is missing, it is assumed that the "
"class has no identifier property."
msgstr ""
"<literal>name 属性ãŒãªã‘ã‚Œã°ã€ã‚¯ãƒ©ã‚¹ã«ã¯è˜åˆ¥åプãƒãƒ‘ティãŒãªã„ã‚‚ã®"
"ã¨ã¿ãªã•ã‚Œã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:546
#, fuzzy, no-c-format
msgid ""
"The <literal>unsaved-value attribute is almost never needed in "
"Hibernate3 and indeed has no corresponding element in annotations."
msgstr ""
"<literal>unsaved-value 属性㯠Hibernate3 ã§ã¯ã»ã¨ã‚“ã©ã®å ´åˆã€å¿…è¦ã§"
"ã¯ã‚ã‚Šã¾ã›ã‚“。"
#. Tag: para
#: basic_mapping.xml:550
#, fuzzy, no-c-format
msgid ""
"You can also declare the identifier as a composite identifier. This allows "
"access to legacy data with composite keys. Its use is strongly discouraged "
"for anything else."
msgstr ""
"複åˆã‚ーをæŒã¤ãƒ¬ã‚¬ã‚·ãƒ¼ãƒ‡ãƒ¼ã‚¿ã«ã‚¢ã‚¯ã‚»ã‚¹ã§ãるよã†ã«ã€ <literal><composite-"
"id></literal> ã¨ã„ã†ä»£æ›¿ã®ãƒžãƒƒãƒ”ング定義ãŒã‚ã‚Šã¾ã™ã€‚ã—ã‹ã—ä»–ã®ç”¨é€”ã¸ã®ä½¿ç”¨"
"ã¯å…¨ããŠã™ã™ã‚ã§ãã¾ã›ã‚“。"
#. Tag: title
#: basic_mapping.xml:555
#, fuzzy, no-c-format
msgid "Composite identifier"
msgstr "è˜åˆ¥åã®å‰²ã‚Šå½“ã¦"
#. Tag: para
#: basic_mapping.xml:557
#, no-c-format
msgid "You can define a composite primary key through several syntaxes:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:562
#, no-c-format
msgid ""
"use a component type to represent the identifier and map it as a property in "
"the entity: you then annotated the property as <classname>@EmbeddedIdSerializable."
msgstr ""
#. Tag: para
#: basic_mapping.xml:569
#, no-c-format
msgid ""
"map multiple properties as <classname>@Id properties: the "
"identifier type is then the entity class itself and needs to be "
"<classname>Serializable. This approach is unfortunately not "
"standard and only supported by Hibernate."
msgstr ""
#. Tag: para
#: basic_mapping.xml:577
#, no-c-format
msgid ""
"map multiple properties as <classname>@Id properties and declare "
"an external class to be the identifier type. This class, which needs to be "
"<classname>Serializable, is declared on the entity via the "
"<classname>@IdClass annotation. The identifier type must contain "
"the same properties as the identifier properties of the entity: each "
"property name must be the same, its type must be the same as well if the "
"entity property is of a basic type, its type must be the type of the primary "
"key of the associated entity if the entity property is an association "
"(either a <classname>@OneToOne or a @ManyToOne."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:604
#, no-c-format
msgid ""
"@Entity\n"
"class User {\n"
" @EmbeddedId\n"
" @AttributeOverride(name=\"firstName\", column=@Column(name=\"fld_firstname"
"\")\n"
" UserId id;\n"
"\n"
" Integer age;\n"
"}\n"
"\n"
"@Embeddable\n"
"class UserId implements Serializable {\n"
" String firstName;\n"
" String lastName;\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:606
#, no-c-format
msgid ""
"You can notice that the <classname>UserId class is serializable. "
"To override the column mapping, use <classname>@AttributeOverride annotation. "
"The <classname>@MapsId value correspond to the property name of "
"the embedded id object containing the associated entity's identifier. In the "
"database, it means that the <literal>Customer.user and the "
"<literal>CustomerId.userId properties share the same underlying "
"column (<literal>user_fk in this case)."
msgstr ""
#. Tag: para
#: basic_mapping.xml:627
#, no-c-format
msgid ""
"The component type used as identifier must implement <methodname>equals()hashCode()."
msgstr ""
#. Tag: para
#: basic_mapping.xml:632
#, no-c-format
msgid ""
"In practice, your code only sets the <literal>Customer.user "
"property and the user id value is copied by Hibernate into the "
"<literal>CustomerId.userId property."
msgstr ""
#. Tag: para
#: basic_mapping.xml:638
#, no-c-format
msgid ""
"The id value can be copied as late as flush time, don't rely on it until "
"after flush time."
msgstr ""
#. Tag: para
#: basic_mapping.xml:642
#, no-c-format
msgid ""
"While not supported in JPA, Hibernate lets you place your association "
"directly in the embedded id component (instead of having to use the "
"<classname>@MapsId annotation)."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:646
#, no-c-format
msgid ""
"@Entity\n"
"class Customer {\n"
" @EmbeddedId CustomerId id;\n"
" boolean preferredCustomer;\n"
"}\n"
"\n"
"@Embeddable\n"
"class CustomerId implements Serializable {\n"
" @OneToOne\n"
" @JoinColumns({\n"
" @JoinColumn(name=\"userfirstname_fk\", referencedColumnName=\"firstName"
"\"),\n"
" @JoinColumn(name=\"userlastname_fk\", referencedColumnName=\"lastName"
"\")\n"
" }) \n"
" User user;\n"
" String customerNumber;\n"
"\n"
" //implements equals and hashCode\n"
"}\n"
"\n"
"@Entity \n"
"class User {\n"
" @EmbeddedId UserId id;\n"
" Integer age;\n"
"}\n"
"\n"
"@Embeddable\n"
"class UserId implements Serializable {\n"
" String firstName;\n"
" String lastName;\n"
"\n"
"\n"
" //implements equals and hashCode\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:648
#, no-c-format
msgid "Let's now rewrite these examples using the hbm.xml syntax."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:651
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:653
#, no-c-format
msgid "First a simple example:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:655
#, no-c-format
msgid ""
"<class name=\"User\">\n"
" <composite-id name=\"id\" class=\"UserId\">\n"
" <key-property name=\"firstName\" column=\"fld_firstname\"/>\n"
" <key-property name=\"lastName\"/>\n"
" </composite-id>\n"
"</class>"
msgstr ""
#. Tag: para
#: basic_mapping.xml:657
#, no-c-format
msgid "Then an example showing how an association can be mapped."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:660
#, no-c-format
msgid ""
"<class name=\"Customer\">\n"
" <composite-id name=\"id\" class=\"CustomerId\">\n"
" <key-property name=\"firstName\" column=\"userfirstname_fk\"/>\n"
" <key-property name=\"lastName\" column=\"userfirstname_fk\"/>\n"
" <key-property name=\"customerNumber\"/>\n"
" </composite-id>\n"
"\n"
" <property name=\"preferredCustomer\"/>\n"
"\n"
" <many-to-one name=\"user\">\n"
" <column name=\"userfirstname_fk\" updatable=\"false\" insertable="
"\"false\"/>\n"
" <column name=\"userlastname_fk\" updatable=\"false\" insertable="
"\"false\"/>\n"
" </many-to-one>\n"
"</class>\n"
"\n"
"<class name=\"User\">\n"
" <composite-id name=\"id\" class=\"UserId\">\n"
" <key-property name=\"firstName\"/>\n"
" <key-property name=\"lastName\"/>\n"
" </composite-id>\n"
"\n"
" <property name=\"age\"/>\n"
"</class>"
msgstr ""
#. Tag: para
#: basic_mapping.xml:662
#, no-c-format
msgid "Notice a few things in the previous example:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:666
#, no-c-format
msgid ""
"the order of the properties (and column) matters. It must be the same "
"between the association and the primary key of the associated entity"
msgstr ""
#. Tag: para
#: basic_mapping.xml:672
#, no-c-format
msgid ""
"the many to one uses the same columns as the primary key and thus must be "
"marked as read only (<literal>insertable and updatable, the id value of the associated "
"entity is not transparently copied, check the <literal>foreign id "
"generator for more information."
msgstr ""
#. Tag: para
#: basic_mapping.xml:686
#, no-c-format
msgid ""
"The last example shows how to map association directly in the embedded id "
"component."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:689
#, no-c-format
msgid ""
"<class name=\"Customer\">\n"
" <composite-id name=\"id\" class=\"CustomerId\">\n"
" <key-many-to-one name=\"user\">\n"
" <column name=\"userfirstname_fk\"/>\n"
" <column name=\"userlastname_fk\"/>\n"
" </key-many-to-one>\n"
" <key-property name=\"customerNumber\"/>\n"
" </composite-id>\n"
"\n"
" <property name=\"preferredCustomer\"/>\n"
"</class>\n"
"\n"
"<class name=\"User\">\n"
" <composite-id name=\"id\" class=\"UserId\">\n"
" <key-property name=\"firstName\"/>\n"
" <key-property name=\"lastName\"/>\n"
" </composite-id>\n"
"\n"
" <property name=\"age\"/>\n"
"</class>"
msgstr ""
#. Tag: para
#: basic_mapping.xml:691
#, no-c-format
msgid ""
"This is the recommended approach to map composite identifier. The following "
"options should not be considered unless some constraint are present."
msgstr ""
#. Tag: title
#: basic_mapping.xml:697
#, no-c-format
msgid "Multiple id properties without identifier type"
msgstr ""
#. Tag: para
#: basic_mapping.xml:699
#, no-c-format
msgid ""
"Another, arguably more natural, approach is to place <classname>@Id is its own identifier "
"representation: it must implement <classname>Serializable and "
"must implement <methodname>equals() and hashCode() on an entity points to the class (component) "
"representing the identifier of the class. The properties marked "
"<classname>@Id on the entity must have their corresponding "
"property on the <classname>@IdClass. The return type of search "
"twin property must be either identical for basic properties or must "
"correspond to the identifier class of the associated entity for an "
"association."
msgstr ""
#. Tag: para
#: basic_mapping.xml:730
#, no-c-format
msgid ""
"This approach is inherited from the EJB 2 days and we recommend against its "
"use. But, after all it's your application and Hibernate supports it."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:735
#, no-c-format
msgid ""
"@Entity\n"
"@IdClass(CustomerId.class)\n"
"class Customer implements Serializable {\n"
" @Id @OneToOne\n"
" @JoinColumns({\n"
" @JoinColumn(name=\"userfirstname_fk\", referencedColumnName=\"firstName"
"\"),\n"
" @JoinColumn(name=\"userlastname_fk\", referencedColumnName=\"lastName"
"\")\n"
" }) \n"
" User user;\n"
" \n"
" @Id String customerNumber;\n"
"\n"
" boolean preferredCustomer;\n"
"}\n"
"\n"
"class CustomerId implements Serializable {\n"
" UserId user;\n"
" String customerNumber;\n"
"\n"
" //implements equals and hashCode\n"
"}\n"
"\n"
"@Entity \n"
"class User {\n"
" @EmbeddedId UserId id;\n"
" Integer age;\n"
"\n"
" //implements equals and hashCode\n"
"}\n"
"\n"
"@Embeddable\n"
"class UserId implements Serializable {\n"
" String firstName;\n"
" String lastName;\n"
"\n"
" //implements equals and hashCode\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:737
#, no-c-format
msgid ""
"<classname>Customer and CustomerId do "
"have the same properties <literal>customerNumber as well as "
"<literal>user. CustomerId must be "
"<classname>Serializable and implement equals()hashCode() ."
msgstr ""
#. Tag: para
#: basic_mapping.xml:745
#, no-c-format
msgid ""
"While not JPA standard, Hibernate let's you declare the vanilla associated "
"property in the <classname>@IdClass."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:749
#, no-c-format
msgid ""
"@Entity\n"
"@IdClass(CustomerId.class)\n"
"class Customer implements Serializable {\n"
" @Id @OneToOne\n"
" @JoinColumns({\n"
" @JoinColumn(name=\"userfirstname_fk\", referencedColumnName=\"firstName"
"\"),\n"
" @JoinColumn(name=\"userlastname_fk\", referencedColumnName=\"lastName"
"\")\n"
" }) \n"
" User user;\n"
" \n"
" @Id String customerNumber;\n"
"\n"
" boolean preferredCustomer;\n"
"}\n"
"\n"
"class CustomerId implements Serializable {\n"
" @OneToOne User user;\n"
" String customerNumber;\n"
"\n"
" //implements equals and hashCode\n"
"}\n"
"\n"
"@Entity \n"
"class User {\n"
" @EmbeddedId UserId id;\n"
" Integer age;\n"
"\n"
" //implements equals and hashCode\n"
"}\n"
"\n"
"@Embeddable\n"
"class UserId implements Serializable {\n"
" String firstName;\n"
" String lastName;\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:751
#, no-c-format
msgid ""
"This feature is of limited interest though as you are likely to have chosen "
"the <classname>@IdClass approach to stay JPA compliant or you "
"have a quite twisted mind."
msgstr ""
#. Tag: para
#: basic_mapping.xml:755
#, no-c-format
msgid "Here are the equivalent on hbm.xml files:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:757
#, no-c-format
msgid ""
"<class name=\"Customer\">\n"
" <composite-id class=\"CustomerId\" mapped=\"true\">\n"
" <key-many-to-one name=\"user\">\n"
" <column name=\"userfirstname_fk\"/>\n"
" <column name=\"userlastname_fk\"/>\n"
" </key-many-to-one>\n"
" <key-property name=\"customerNumber\"/>\n"
" </composite-id>\n"
"\n"
" <property name=\"preferredCustomer\"/>\n"
"</class>\n"
"\n"
"<class name=\"User\">\n"
" <composite-id name=\"id\" class=\"UserId\">\n"
" <key-property name=\"firstName\"/>\n"
" <key-property name=\"lastName\"/>\n"
" </composite-id>\n"
"\n"
" <property name=\"age\"/>\n"
"</class>"
msgstr ""
#. Tag: title
#: basic_mapping.xml:762
#, fuzzy, no-c-format
msgid "Identifier generator"
msgstr "è˜åˆ¥åã® getter メソッド"
#. Tag: para
#: basic_mapping.xml:764
#, no-c-format
msgid ""
"Hibernate can generate and populate identifier values for you automatically. "
"This is the recommended approach over \"business\" or \"natural\" id "
"(especially composite ids)."
msgstr ""
#. Tag: para
#: basic_mapping.xml:768
#, no-c-format
msgid ""
"Hibernate offers various generation strategies, let's explore the most "
"common ones first that happens to be standardized by JPA:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:774
#, fuzzy, no-c-format
msgid ""
"IDENTITY: supports identity columns in DB2, MySQL, MS SQL Server, Sybase and "
"HypersonicSQL. The returned identifier is of type <literal>long, "
"<literal>short or int ."
msgstr ""
"DB2, MySQL, MS SQL Server, Sybase, HypersonicSQL ã®è˜åˆ¥åカラムをサãƒãƒ¼ãƒˆã—ã¾"
"ã™ã€‚è¿”ã•ã‚Œã‚‹è˜åˆ¥åã®åž‹ã¯ <literal>long , shortint ã®ã„ãšã‚Œã‹ã§ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:781
#, fuzzy, no-c-format
msgid ""
"SEQUENCE (called <literal>seqhilo in Hibernate): uses a hi/lo "
"algorithm to efficiently generate identifiers of type <literal>longshort or int , given a named "
"database sequence."
msgstr ""
"<literal>long , short , int "
"åž‹ã®è˜åˆ¥åを効率的ã«ç”Ÿæˆã™ã‚‹ hi/lo アルゴリズムを使ã„ã¾ã™ã€‚指定ã•ã‚ŒãŸãƒ‡ãƒ¼ã‚¿"
"ベースシーケンスを与ãˆã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:788
#, fuzzy, no-c-format
msgid ""
"TABLE (called <classname>MultipleHiLoPerTableGenerator in "
"Hibernate) : uses a hi/lo algorithm to efficiently generate identifiers of "
"type <literal>long, short or int , short , int "
"åž‹ã®è˜åˆ¥åを効率的ã«ç”Ÿæˆã™ã‚‹ hi/lo アルゴリズムを使ã„ã¾ã™ã€‚ hi 値ã®ã‚½ãƒ¼ã‚¹ã¨ã—"
"ã¦ã€ãƒ†ãƒ¼ãƒ–ルã¨ã‚«ãƒ©ãƒ を与ãˆã¾ã™(デフォルトã§ã¯ãã‚Œãžã‚Œ "
"<literal>hibernate_unique_key 㨠next_hi )。 hi/"
"lo アルゴリズムã¯ç‰¹å®šã®ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã«å¯¾ã—ã¦ã®ã¿ãƒ¦ãƒ‹ãƒ¼ã‚¯ãªè˜åˆ¥åを生æˆã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:798
#, fuzzy, no-c-format
msgid ""
"AUTO: selects <literal>IDENTITY, SEQUENCE or "
"<literal>TABLE depending upon the capabilities of the underlying "
"database."
msgstr ""
"使用ã™ã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã®æ€§èƒ½ã«ã‚ˆã‚Š <literal>identity 〠"
"<literal>sequence 〠hilo ã®ã„ãšã‚Œã‹ãŒé¸ã°ã‚Œã¾"
"ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:805
#, no-c-format
msgid ""
"We recommend all new projects to use the new enhanced identifier generators. "
"They are deactivated by default for entities using annotations but can be "
"activated using <code>hibernate.id.new_generator_mappings=true. These "
"new generators are more efficient and closer to the JPA 2 specification "
"semantic."
msgstr ""
#. Tag: para
#: basic_mapping.xml:812
#, no-c-format
msgid ""
"However they are not backward compatible with existing Hibernate based "
"application (if a sequence or a table is used for id generation). See "
"XXXXXXX <xref linkend=\"ann-setup-properties\"/> for more information on how "
"to activate them."
msgstr ""
#. Tag: para
#: basic_mapping.xml:818
#, no-c-format
msgid ""
"To mark an id property as generated, use the <classname>@GeneratedValue) by setting strategy ."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:823
#, no-c-format
msgid ""
"@Entity\n"
"public class Customer {\n"
" @Id @GeneratedValue\n"
" Integer getId() { ... };\n"
"}\n"
"\n"
"@Entity \n"
"public class Invoice {\n"
" @Id @GeneratedValue(strategy=GenerationType.IDENTITY)\n"
" Integer getId() { ... };\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:825
#, no-c-format
msgid ""
"<literal>SEQUENCE and TABLE require additional "
"configurations that you can set using <classname>@SequenceGenerator@TableGenerator:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:832
#, fuzzy, no-c-format
msgid "<literal>name: name of the generator"
msgstr "<literal>name:プãƒãƒ‘ティå。"
#. Tag: para
#: basic_mapping.xml:836
#, fuzzy, no-c-format
msgid ""
"<literal>table / sequenceName : name of the "
"table or the sequence (defaulting respectively to "
"<literal>hibernate_sequences and hibernate_sequence(オプション - デフォルト㯠class / schema :"
msgstr "<literal>sequence-identity "
#. Tag: para
#: basic_mapping.xml:848
#, fuzzy, no-c-format
msgid ""
"<literal>initialValue : the value from which the id is to start "
"generating"
msgstr "<literal>table :çµåˆã—ãŸãƒ†ãƒ¼ãƒ–ルã®åå‰"
#. Tag: para
#: basic_mapping.xml:853
#, no-c-format
msgid ""
"<literal>allocationSize: the amount to increment by when "
"allocating id numbers from the generator"
msgstr ""
#. Tag: para
#: basic_mapping.xml:858
#, no-c-format
msgid ""
"In addition, the <classname>TABLE strategy also let you "
"customize:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:863
#, fuzzy, no-c-format
msgid ""
"<literal>pkColumnName: the column name containing the entity "
"identifier"
msgstr "<literal>name:プãƒãƒ‘ティå。"
#. Tag: para
#: basic_mapping.xml:868
#, fuzzy, no-c-format
msgid ""
"<literal>valueColumnName: the column name containing the "
"identifier value"
msgstr "<literal>name(オプション):è˜åˆ¥åプãƒãƒ‘ティã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:873
#, fuzzy, no-c-format
msgid "<literal>pkColumnValue: the entity identifier"
msgstr "<literal>id-type: è˜åˆ¥åã®åž‹ã€‚"
#. Tag: para
#: basic_mapping.xml:878
#, no-c-format
msgid ""
"<literal>uniqueConstraints: any potential column constraint on the "
"table containing the ids"
msgstr ""
#. Tag: para
#: basic_mapping.xml:883
#, no-c-format
msgid ""
"To link a table or sequence generator definition with an actual generated "
"property, use the same name in both the definition <literal>name "
"and the generator value <literal>generator as shown below."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:888
#, no-c-format
msgid ""
"@Id \n"
"@GeneratedValue(\n"
" strategy=GenerationType.SEQUENCE, \n"
" generator=\"SEQ_GEN\")\n"
"@javax.persistence.SequenceGenerator(\n"
" name=\"SEQ_GEN\",\n"
" sequenceName=\"my_sequence\",\n"
" allocationSize=20\n"
")\n"
"public Integer getId() { ... }"
msgstr ""
#. Tag: para
#: basic_mapping.xml:890
#, no-c-format
msgid ""
"The scope of a generator definition can be the application or the class. "
"Class-defined generators are not visible outside the class and can override "
"application level generators. Application level generators are defined in "
"JPA's XML deployment descriptors (see XXXXXX <xref linkend=\"xml-overriding"
"\"/>):"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:896
#, no-c-format
msgid ""
"<table-generator name=\"EMP_GEN\"\n"
" table=\"GENERATOR_TABLE\"\n"
" pk-column-name=\"key\"\n"
" value-column-name=\"hi\"\n"
" pk-column-value=\"EMP\"\n"
" allocation-size=\"20\"/>\n"
"\n"
"//and the annotation equivalent\n"
"\n"
"@javax.persistence.TableGenerator(\n"
" name=\"EMP_GEN\",\n"
" table=\"GENERATOR_TABLE\",\n"
" pkColumnName = \"key\",\n"
" valueColumnName = \"hi\"\n"
" pkColumnValue=\"EMP\",\n"
" allocationSize=20\n"
")\n"
"\n"
"<sequence-generator name=\"SEQ_GEN\" \n"
" sequence-name=\"my_sequence\"\n"
" allocation-size=\"20\"/>\n"
"\n"
"//and the annotation equivalent\n"
"\n"
"@javax.persistence.SequenceGenerator(\n"
" name=\"SEQ_GEN\",\n"
" sequenceName=\"my_sequence\",\n"
" allocationSize=20\n"
")"
msgstr ""
#. Tag: para
#: basic_mapping.xml:898
#, no-c-format
msgid ""
"If a JPA XML descriptor (like <filename>META-INF/orm.xml) is used "
"to define the generators, <literal>EMP_GEN and SEQ_GEN at the package level "
"(see <xref linkend=\"entity-hibspec-identifier\"/>)."
msgstr ""
#. Tag: para
#: basic_mapping.xml:910
#, no-c-format
msgid ""
"These are the four standard JPA generators. Hibernate goes beyond that and "
"provide additional generators or additional options as we will see below. "
"You can also write your own custom identifier generator by implementing "
"<classname>org.hibernate.id.IdentifierGenerator."
msgstr ""
#. Tag: para
#: basic_mapping.xml:916
#, no-c-format
msgid ""
"To define a custom generator, use the <classname>@GenericGenerator) that describes the class of the "
"identifier generator or its short cut name (as described below) and a list "
"of key/value parameters. When using <classname>@GenericGenerator "
"and assigning it via <classname>@GeneratedValue.generator, the "
"<classname>@GeneratedValue.strategy is ignored: leave it blank."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:926
#, no-c-format
msgid ""
"@Id @GeneratedValue(generator=\"system-uuid\")\n"
"@GenericGenerator(name=\"system-uuid\", strategy = \"uuid\")\n"
"public String getId() {\n"
"\n"
"@Id @GeneratedValue(generator=\"trigger-generated\")\n"
"@GenericGenerator(\n"
" name=\"trigger-generated\", \n"
" strategy = \"select\",\n"
" parameters = @Parameter(name=\"key\", value = \"socialSecurityNumber\")\n"
")\n"
"public String getId() {"
msgstr ""
#. Tag: para
#: basic_mapping.xml:928
#, fuzzy, no-c-format
msgid ""
"The hbm.xml approach uses the optional <literal><generator> "
"child element inside <literal><id>. If any parameters are "
"required to configure or initialize the generator instance, they are passed "
"using the <literal><param> element."
msgstr ""
"オプション㮠<literal><generator> åè¦ç´ ã¯ã€æ°¸ç¶šã‚¯ãƒ©ã‚¹ã®ã‚¤ãƒ³"
"スタンスã®ãƒ¦ãƒ‹ãƒ¼ã‚¯ãªè˜åˆ¥åを生æˆã™ã‚‹ãŸã‚ã«ä½¿ã†ã€ Java クラスを指定ã—ã¾ã™ã€‚"
"ジェãƒãƒ¬ãƒ¼ã‚¿ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã®è¨å®šã€ã‚‚ã—ãã¯åˆæœŸåŒ–ã«ãƒ‘ラメータãŒå¿…è¦ã§ã‚ã‚Œã°ã€ "
"<literal><param> è¦ç´ を使ã£ã¦æ¸¡ã™ã“ã¨ãŒã§ãã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:934
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: title
#: basic_mapping.xml:937
#, no-c-format
msgid "Various additional generators"
msgstr ""
#. Tag: para
#: basic_mapping.xml:939
#, 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, shortint that are unique only when no other "
"process is inserting data into the same table. <emphasis>Do not use in a "
"cluster.</emphasis>"
msgstr ""
"<literal>long , short , int "
"åž‹ã®è˜åˆ¥åを生æˆã—ã¾ã™ã€‚ã“れらã¯ä»–ã®ãƒ—ãƒã‚»ã‚¹ãŒåŒã˜ãƒ†ãƒ¼ãƒ–ルã«ãƒ‡ãƒ¼ã‚¿ã‚’挿入ã—ãª"
"ã„ã¨ãã ã‘ユニークã§ã™ã€‚ <emphasis>クラスタ内ã§ã¯ä½¿ã‚ãªã„ã§ãã ã•ã„, "
"<literal>short or int ."
msgstr ""
"DB2, MySQL, MS SQL Server, Sybase, HypersonicSQL ã®è˜åˆ¥åカラムをサãƒãƒ¼ãƒˆã—ã¾"
"ã™ã€‚è¿”ã•ã‚Œã‚‹è˜åˆ¥åã®åž‹ã¯ <literal>long , shortint ã®ã„ãšã‚Œã‹ã§ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:969
#, no-c-format
msgid "sequence"
msgstr "sequence"
#. Tag: para
#: basic_mapping.xml:972
#, 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>short or int "
msgstr ""
"DB2, PostgreSQL, Oracle, SAP DB, McKoi ã®ã‚·ãƒ¼ã‚±ãƒ³ã‚¹ã‚„〠Interbase ã®ã‚¸ã‚§ãƒ"
"レータを使用ã—ã¾ã™ã€‚è¿”ã•ã‚Œã‚‹è˜åˆ¥åã®åž‹ã¯ <literal>long , "
"<literal>short , int ã®ã„ãšã‚Œã‹ã§ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:980
#, no-c-format
msgid "hilo"
msgstr "hilo"
#. Tag: para
#: basic_mapping.xml:984
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
"<literal>long, short or int , "
"given a table and column (by default <literal>hibernate_unique_key "
"and <literal>next_hi respectively) as a source of hi values. The "
"hi/lo algorithm generates identifiers that are unique only for a particular "
"database."
msgstr ""
"<literal>long , short , int "
"åž‹ã®è˜åˆ¥åを効率的ã«ç”Ÿæˆã™ã‚‹ hi/lo アルゴリズムを使ã„ã¾ã™ã€‚ hi 値ã®ã‚½ãƒ¼ã‚¹ã¨ã—"
"ã¦ã€ãƒ†ãƒ¼ãƒ–ルã¨ã‚«ãƒ©ãƒ を与ãˆã¾ã™(デフォルトã§ã¯ãã‚Œãžã‚Œ "
"<literal>hibernate_unique_key 㨠next_hi )。 hi/"
"lo アルゴリズムã¯ç‰¹å®šã®ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã«å¯¾ã—ã¦ã®ã¿ãƒ¦ãƒ‹ãƒ¼ã‚¯ãªè˜åˆ¥åを生æˆã—ã¾ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:996
#, no-c-format
msgid "seqhilo"
msgstr "seqhilo"
#. Tag: para
#: basic_mapping.xml:999
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
"<literal>long, short or int , "
"given a named database sequence."
msgstr ""
"<literal>long , short , int "
"åž‹ã®è˜åˆ¥åを効率的ã«ç”Ÿæˆã™ã‚‹ hi/lo アルゴリズムを使ã„ã¾ã™ã€‚指定ã•ã‚ŒãŸãƒ‡ãƒ¼ã‚¿"
"ベースシーケンスを与ãˆã¾ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:1007
#, fuzzy, no-c-format
msgid "uuid"
msgstr "guid"
#. Tag: para
#: basic_mapping.xml:1010
#, no-c-format
msgid ""
"Generates a 128-bit UUID based on a custom algorithm. The value generated is "
"represented as a string of 32 hexidecimal digits. Users can also configure "
"it to use a separator (config parameter \"separator\") which separates the "
"hexidecimal digits into 8{sep}8{sep}4{sep}8{sep}4. Note specifically that "
"this is different than the IETF RFC 4122 representation of 8-4-4-4-12. If "
"you need RFC 4122 compliant UUIDs, consider using \"uuid2\" generator "
"discussed below."
msgstr ""
#. Tag: literal
#: basic_mapping.xml:1023
#, fuzzy, no-c-format
msgid "uuid2"
msgstr "guid"
#. Tag: para
#: basic_mapping.xml:1026
#, no-c-format
msgid ""
"Generates a IETF RFC 4122 compliant (variant 2) 128-bit UUID. The exact "
"\"version\" (the RFC term) generated depends on the pluggable \"generation "
"strategy\" used (see below). Capable of generating values as <classname>java."
"util.UUID</classname>, java.lang.String or as a byte "
"array of length 16 (<literal>byte[16]). The \"generation strategy"
"\" is defined by the interface <interfacename>org.hibernate.id."
"UUIDGenerationStrategy</interfacename>. The generator defines 2 "
"configuration parameters for defining which generation strategy to use:"
msgstr ""
#. Tag: literal
#: basic_mapping.xml:1038
#, no-c-format
msgid "uuid_gen_strategy_class"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1041
#, no-c-format
msgid "Names the UUIDGenerationStrategy class to use"
msgstr ""
#. Tag: literal
#: basic_mapping.xml:1047
#, no-c-format
msgid "uuid_gen_strategy"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1050
#, no-c-format
msgid "Names the UUIDGenerationStrategy instance to use"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1056
#, no-c-format
msgid "Out of the box, comes with the following strategies:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1059
#, no-c-format
msgid ""
"<classname>org.hibernate.id.uuid.StandardRandomStrategy (the "
"default) - generates \"version 3\" (aka, \"random\") UUID values via the "
"<methodname>randomUUID method of java.util.UUID - "
"generates \"version 1\" UUID values, using IP address since mac address not "
"available. If you need mac address to be used, consider leveraging one of "
"the existing third party UUID generators which sniff out mac address and "
"integrating it via the <interfacename>org.hibernate.id."
"UUIDGenerationStrategy</interfacename> contract. Two such libraries known at "
"time of this writing include <ulink url=\"http://johannburkard.de/software/"
"uuid/\">http://johannburkard.de/software/uuid/</ulink> and , sequence or "
"<literal>hilo depending upon the capabilities of the underlying "
"database."
msgstr ""
"使用ã™ã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã®æ€§èƒ½ã«ã‚ˆã‚Š <literal>identity 〠"
"<literal>sequence 〠hilo ã®ã„ãšã‚Œã‹ãŒé¸ã°ã‚Œã¾"
"ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:1105
#, no-c-format
msgid "assigned"
msgstr "assigned"
#. Tag: para
#: basic_mapping.xml:1108
#, 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 <"
"generator></literal> element is specified."
msgstr ""
"<literal>save() ãŒå‘¼ã°ã‚Œã‚‹å‰ã«ã€ã‚¢ãƒ—リケーションãŒã‚ªãƒ–ジェクトã«è˜"
"別åを代入ã§ãるよã†ã«ã—ã¾ã™ã€‚ <literal><generator> è¦ç´ ãŒæŒ‡"
"定ã•ã‚Œã¦ã„ãªã‘ã‚Œã°ã€ã“ã‚ŒãŒãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®æˆ¦ç•¥ã«ãªã‚Šã¾ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:1117
#, no-c-format
msgid "select"
msgstr "select"
#. Tag: para
#: basic_mapping.xml:1120
#, 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:1127
#, no-c-format
msgid "foreign"
msgstr "foreign"
#. Tag: para
#: basic_mapping.xml:1130
#, no-c-format
msgid ""
"uses the identifier of another associated object. It is usually used in "
"conjunction with a <literal><one-to-one> primary key "
"association."
msgstr ""
"ä»–ã®é–¢é€£ã‚ªãƒ–ジェクトã®è˜åˆ¥åを使ã„ã¾ã™ã€‚普通ã¯ã€ <literal><one-to-one>"
"</literal> 主ã‚ー関連ã¨çµ„ã¿åˆã‚ã›ã¦ä½¿ã„ã¾ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:1138
#, fuzzy, no-c-format
msgid "sequence-identity"
msgstr "<literal>sequence-identity"
#. Tag: para
#: basic_mapping.xml:1141
#, 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 ""
"実際ã®å€¤ã®ç”Ÿæˆã®ãŸã‚ã«ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚·ãƒ¼ã‚±ãƒ³ã‚¹ã‚’使用ã™ã‚‹ç‰¹åˆ¥ãªã‚·ãƒ¼ã‚±ãƒ³ã‚¹ç”Ÿæˆæˆ¦"
"ç•¥ã§ã™ãŒã€ JDBC3 getGeneratedKeys ã¨çµã³ã¤ã„ã¦ã€ INSERT æ–‡ã®å®Ÿè¡Œã®ä¸€éƒ¨ã¨ã—ã¦"
"生æˆã•ã‚ŒãŸè˜åˆ¥åã®å€¤ã‚’実際ã«è¿”ã—ã¾ã™ã€‚ã“ã®æˆ¦ç•¥ã¯ JDK 1.4 を対象ã¨ã™ã‚‹ Oracle "
"10g ã®ãƒ‰ãƒ©ã‚¤ãƒã§ã‚µãƒãƒ¼ãƒˆã•ã‚Œã¦ã„ã‚‹ã“ã¨ãŒçŸ¥ã‚‰ã‚Œã¦ã„ã¾ã™ã€‚ã“れら㮠INSERT æ–‡ã§"
"ã®ã‚³ãƒ¡ãƒ³ãƒˆã¯ Oracle ã®ãƒ‰ãƒ©ã‚¤ãƒã®ãƒã‚°ã«ã‚ˆã‚Šç„¡åŠ¹ã«ã•ã‚Œã¦ã„ã‚‹ã“ã¨ã«æ³¨æ„ã—ã¦ãã "
"ã•ã„。"
#. Tag: title
#: basic_mapping.xml:1155
#, no-c-format
msgid "Hi/lo algorithm"
msgstr "Hi/lo アルゴリズム"
#. Tag: para
#: basic_mapping.xml:1157
#, no-c-format
msgid ""
"The <literal>hilo and seqhilo 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 ""
"<literal>hilo 㨠seqhilo ジェãƒãƒ¬ãƒ¼ã‚¿ã¯ã€è˜åˆ¥å"
"生æˆã®ä»£è¡¨çš„ãªã‚¢ãƒ—ãƒãƒ¼ãƒã§ã‚ã‚‹ hi/lo アルゴリズムã®2ã¤ã®ä»£æ›¿å®Ÿè£…ã‚’æä¾›ã—ã¾"
"ã™ã€‚1番目ã®å®Ÿè£…ã¯ã€æ¬¡å›žã«åˆ©ç”¨ã•ã‚Œã‚‹ \"hi\" 値をä¿æŒã™ã‚‹ã€Œç‰¹åˆ¥ãªã€ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹"
"テーブルを必è¦ã¨ã—ã¾ã™ã€‚2番目ã®å®Ÿè£…ã¯ã€ Oracle スタイルã®ã‚·ãƒ¼ã‚±ãƒ³ã‚¹ã‚’使ã„ã¾ã™"
"(サãƒãƒ¼ãƒˆã•ã‚Œã¦ã„ã‚‹å ´åˆï¼‰ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:1163
#, fuzzy, no-c-format
msgid ""
"<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 ""
"<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:1165
#, fuzzy, no-c-format
msgid ""
"<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 ""
"<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:1167
#, no-c-format
msgid ""
"Unfortunately, you cannot use <literal>hilo when supplying your "
"own <literal>Connection 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>hilo を使ãˆã¾ã›ã‚“。 Hibernate ㌠JTA ã§ãƒªã‚¹ãƒˆã•ã‚Œã¦"
"ã„る接続をå–å¾—ã™ã‚‹ãŸã‚ã«ã‚¢ãƒ—リケーションサーãƒãƒ¼ã®ãƒ‡ãƒ¼ã‚¿ã‚½ãƒ¼ã‚¹ã‚’使用ã—ã¦ã„ã‚‹"
"ã¨ãã«ã¯ã€ <literal>hibernate.transaction.manager_lookup_class ã‚’é©"
"切ã«è¨å®šã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。"
#. Tag: title
#: basic_mapping.xml:1175
#, no-c-format
msgid "UUID algorithm"
msgstr "UUID アルゴリズム"
#. Tag: para
#: basic_mapping.xml:1177
#, 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 ãŒä½¿ãˆãªã„ã¨ãã®æœ€è‰¯ã®æ–¹æ³•ã§ã™ã€‚"
#. Tag: title
#: basic_mapping.xml:1185
#, no-c-format
msgid "Identity columns and sequences"
msgstr "è˜åˆ¥åカラムã¨ã‚·ãƒ¼ã‚±ãƒ³ã‚¹"
#. Tag: para
#: basic_mapping.xml:1187
#, no-c-format
msgid ""
"For databases that support identity columns (DB2, MySQL, Sybase, MS SQL), "
"you can use <literal>identity key generation. For databases that "
"support sequences (DB2, Oracle, PostgreSQL, Interbase, McKoi, SAP DB) you "
"can use <literal>sequence 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 ã‚ー生æˆãŒä½¿ãˆã¾ã™ã€‚シーケンスをサãƒãƒ¼ãƒˆã™ã‚‹"
"データベース(DB2, Oracle, PostgreSQL, Interbase, McKoi, SAP DB)ã§ã¯ã€ "
"<literal>sequence スタイルã®ã‚ー生æˆãŒä½¿ãˆã¾ã™ã€‚ã©ã¡ã‚‰ã®æˆ¦ç•¥ã‚‚ã€æ–°"
"ã—ã„オブジェクトを挿入ã™ã‚‹ãŸã‚ã«ã€ SQL クエリを2ã¤å¿…è¦ã¨ã—ã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:1195
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: programlisting
#: basic_mapping.xml:1197
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:1199
#, no-c-format
msgid ""
"For cross-platform development, the <literal>native strategy will, "
"depending on the capabilities of the underlying database, choose from the "
"<literal>identity, sequence and hilo 戦略㯠"
"<literal>identity 〠sequence 〠hilo "
"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 <classname>@GeneratedValue nor "
"<literal><generator> elements."
msgstr ""
"アプリケーションã«è˜åˆ¥åを割り当ã¦ã•ã›ãŸã„ã®ã§ã‚ã‚Œã°( Hibernate ãŒç”Ÿæˆã™ã‚‹ã‚‚"
"ã®ã§ã¯ãªã)〠<literal>assigned ジェãƒãƒ¬ãƒ¼ã‚¿ã‚’使ã†ã“ã¨ãŒã§ãã¾ã™ã€‚"
"ã“ã®ç‰¹åˆ¥ãªã‚¸ã‚§ãƒãƒ¬ãƒ¼ã‚¿ã¯ã€ã™ã§ã«ã‚ªãƒ–ジェクトã®è˜åˆ¥åプãƒãƒ‘ティã«ä»£å…¥ã•ã‚ŒãŸå€¤"
"ã‚’è˜åˆ¥åã«ä½¿ã„ã¾ã™ã€‚ã“ã®ã‚¸ã‚§ãƒãƒ¬ãƒ¼ã‚¿ã¯ä¸»ã‚ーãŒä»£ç†ã‚ーã®ä»£ã‚ã‚Šã«è‡ªç„¶ã‚ーã§ã‚"
"ã‚‹å ´åˆã«ä½¿ç”¨ã—ã¾ã™ã€‚ <literal><generator> è¦ç´ を指定ã—ãªã„å ´"
"åˆã®ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®å‹•ä½œã«ãªã‚Šã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:1218
#, no-c-format
msgid ""
"The <literal>assigned generator makes Hibernate use "
"<literal>unsaved-value=\"undefined\". 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 ""
"<literal>assigned ジェãƒãƒ¬ãƒ¼ã‚¿ã‚’é¸æŠžã™ã‚‹ã¨ã€ Hibernate 㯠"
"<literal>unsaved-value=\"undefined\" を使ã„ã¾ã™ã€‚ãã—ã¦ã€ãƒãƒ¼ã‚¸ãƒ§ãƒ³"
"やタイムスタンプã®ãƒ—ãƒãƒ‘ティãŒãªã„å ´åˆã‚„ <literal>Interceptor.isUnsaved(). It is defined by the class, as a "
"natural key and a surrogate key named <literal>person_id, whose "
"value is generated by a trigger."
msgstr ""
"上記ã®ä¾‹ã®ä¸ã§ã€ã‚¯ãƒ©ã‚¹ã§è‡ªç„¶ã‚ーã¨ã—ã¦å®šç¾©ã•ã‚ŒãŸ "
"<literal>socialSecurityNumber ã¨ã„ã†åå‰ã®ãƒ¦ãƒ‹ãƒ¼ã‚¯ãªå€¤ã®ãƒ—ãƒãƒ‘ティ"
"ã¨ã€å€¤ãŒãƒˆãƒªã‚¬ã«ã‚ˆã‚Šç”Ÿæˆã•ã‚Œã‚‹ <literal>person_id ã¨ã„ã†åå‰ã®ä»£ç†"
"ã‚ーãŒã‚ã‚Šã¾ã™ã€‚"
#. Tag: title
#: basic_mapping.xml:1241
#, no-c-format
msgid "Identity copy (foreign generator)"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1243
#, no-c-format
msgid ""
"Finally, you can ask Hibernate to copy the identifier from another "
"associated entity. In the Hibernate jargon, it is known as a foreign "
"generator but the JPA mapping reads better and is encouraged."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1248
#, no-c-format
msgid ""
"@Entity\n"
"class MedicalHistory implements Serializable {\n"
" @Id @OneToOne\n"
" @JoinColumn(name = \"person_id\")\n"
" Person patient;\n"
"}\n"
"\n"
"@Entity\n"
"public class Person implements Serializable {\n"
" @Id @GeneratedValue Integer id;\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1250
#, fuzzy, no-c-format
msgid "Or alternatively"
msgstr "メタデータã®ä»£æ›¿æ‰‹æ®µ"
#. Tag: programlisting
#: basic_mapping.xml:1252
#, no-c-format
msgid ""
"@Entity\n"
"class MedicalHistory implements Serializable {\n"
" @Id Integer id;\n"
"\n"
" @MapsId @OneToOne\n"
" @JoinColumn(name = \"patient_id\")\n"
" Person patient;\n"
"}\n"
"\n"
"@Entity\n"
"class Person {\n"
" @Id @GeneratedValue Integer id;\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1254
#, no-c-format
msgid "In hbm.xml use the following approach:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1256
#, fuzzy, no-c-format
msgid ""
"<class name=\"MedicalHistory\">\n"
" <id name=\"id\">\n"
" <generator class=\"foreign\">\n"
" <param name=\"property\">patient</param>\n"
" </generator>\n"
" </id>\n"
" <one-to-one name=\"patient\" class=\"Person\" 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>"
#. Tag: title
#: basic_mapping.xml:1261
#, fuzzy, no-c-format
msgid "Enhanced identifier generators"
msgstr "è˜åˆ¥åã® getter メソッド"
#. Tag: para
#: basic_mapping.xml:1263
#, 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:1272
#, 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 generator and, secondly, as "
"a better portability generator than <literal>native. This is "
"because <literal>native generally chooses between "
"<literal>identity and sequence 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 (optional, defaults to "
"<literal>hibernate_sequence): the name of the sequence or table to "
"be used."
msgstr ""
"<literal>column(オプション - デフォルト㯠class (optional, defaults to 1 (optional - defaults to 1 (optional - defaults to false (オプション - デフォルト㯠false (optional - defaults to next_val(オプション - デフォルト㯠class (optional - defaults to none(オプション - デフォルト㯠none generator, even though it actually functions "
"much more like <literal>org.hibernate.id.MultipleHiLoPerTableGeneratororg.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:1345
#, fuzzy, no-c-format
msgid ""
"<literal>table_name (optional - defaults to "
"<literal>hibernate_sequences ): the name of the table to be used."
msgstr ""
"<literal>type (オプション - デフォルト㯠integer (optional - defaults to "
"<literal>next_val ): the name of the column on the table that is "
"used to hold the value."
msgstr ""
"<literal>column (オプション - デフォルト㯠class (optional - defaults to "
"<literal>sequence_name ): 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:1365
#, fuzzy, no-c-format
msgid ""
"<literal>segment_value (optional - defaults to default (オプション - デフォルト㯠property (optional - defaults to "
"<literal>255 ): Used for schema generation; the column size to "
"create this segment key column."
msgstr ""
"<literal>column (オプション - デフォルト㯠class (optional - defaults to 1 (オプション - デフォルト㯠integer (optional - defaults to 1 (オプション - デフォルト㯠integer (optional - defaults to ?? ): "
"See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>."
msgstr ""
"<literal>type (オプション - デフォルト㯠integer (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:1417
#, no-c-format
msgid ""
"<literal>hilo : 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 is multiplied by that value in memory to "
"define a group \"hi value\"."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1427
#, no-c-format
msgid ""
"<literal>pooled : as with the case of hilo , 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 refers to "
"the values coming from the database."
msgstr ""
#. Tag: title
#: basic_mapping.xml:1441
#, fuzzy, no-c-format
msgid "Partial identifier generation"
msgstr "è˜åˆ¥åã® getter メソッド"
#. Tag: para
#: basic_mapping.xml:1443
#, no-c-format
msgid ""
"Hibernate supports the automatic generation of some of the identifier "
"properties. Simply use the <classname>@GeneratedValue annotation "
"on one or several id properties."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1449
#, no-c-format
msgid ""
"The Hibernate team has always felt such a construct as fundamentally wrong. "
"Try hard to fix your data model before using this feature."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1454
#, no-c-format
msgid ""
"@Entity\n"
"public class CustomerInventory implements Serializable {\n"
" @Id\n"
" @TableGenerator(name = \"inventory\",\n"
" table = \"U_SEQUENCES\",\n"
" pkColumnName = \"S_ID\",\n"
" valueColumnName = \"S_NEXTNUM\",\n"
" pkColumnValue = \"inventory\",\n"
" allocationSize = 1000)\n"
" @GeneratedValue(strategy = GenerationType.TABLE, generator = \"inventory"
"\")\n"
" Integer id;\n"
"\n"
"\n"
" @Id @ManyToOne(cascade = CascadeType.MERGE)\n"
" Customer customer;\n"
"}\n"
"\n"
"@Entity\n"
"public class Customer implements Serializable {\n"
" @Id\n"
" private int id;\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1456
#, no-c-format
msgid ""
"You can also generate properties inside an <classname>@EmbeddedIdDeclaring 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 ""
"ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚„タイムスタンプã®ãƒ—ãƒãƒ‘ティã¯ã€åˆ†é›¢ã•ã‚ŒãŸã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã«å¯¾ã—㦠"
"null ã§ã‚ã£ã¦ã¯ãªã‚Šã¾ã›ã‚“。ãã®ãŸã‚ã©ã®ã‚ˆã†ãª <literal>unsaved-value annotation:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1490
#, no-c-format
msgid ""
"@Entity\n"
"public class Flight implements Serializable {\n"
"...\n"
" @Version\n"
" @Column(name=\"OPTLOCK\")\n"
" public Integer getVersion() { ... }\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1492
#, no-c-format
msgid ""
"The version property will be mapped to the <literal>OPTLOCK "
"column, and the entity manager will use it to detect conflicting updates "
"(preventing lost updates you might otherwise see with the last-commit-wins "
"strategy)."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1497
#, no-c-format
msgid ""
"The version column may be a numeric. Hibernate supports any kind of type "
"provided that you define and implement the appropriate "
"<classname>UserVersionType."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1501
#, no-c-format
msgid ""
"The application must not alter the version number set up by Hibernate in any "
"way. To artificially increase the version number, check in Hibernate Entity "
"Manager's reference documentation <literal>LockModeType."
"OPTIMISTIC_FORCE_INCREMENT</literal> or LockModeType."
"PESSIMISTIC_FORCE_INCREMENT</literal>."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1507
#, no-c-format
msgid ""
"If the version number is generated by the database (via a trigger for "
"example), make sure to use <code>@org.hibernate.annotations.Generated"
"(GenerationTime.ALWAYS).</code>"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1511
#, no-c-format
msgid "To declare a version property in hbm.xml, use:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1530
#, fuzzy, no-c-format
msgid ""
"<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"
"/>"
#. Tag: para
#: basic_mapping.xml:1534
#, no-c-format
msgid ""
"<literal>column (optional - defaults to the property name): the "
"name of the column holding the version number."
msgstr ""
"<literal>column (オプション - デフォルトã¯ãƒ—ãƒãƒ‘ティå): ãƒãƒ¼ã‚¸ãƒ§"
"ン番å·ã‚’ä¿æŒã™ã‚‹ã‚«ãƒ©ãƒ ã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:1540
#, no-c-format
msgid ""
"<literal>name : the name of a property of the persistent class."
msgstr "<literal>name :永続クラスã®ãƒ—ãƒãƒ‘ティã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:1545
#, no-c-format
msgid ""
"<literal>type (optional - defaults to integer ): "
"the type of the version number."
msgstr ""
"<literal>type (オプション - デフォルト㯠integer (optional - defaults to property (オプション - デフォルト㯠property (optional - defaults to undefined "
"specifies that the identifier property value should be used."
msgstr ""
"<literal>unsaved-value (オプション - デフォルト㯠"
"<literal>undefined ): インスタンスãŒæ–°ã—ãインスタンス化ã•ã‚ŒãŸã“"
"ã¨ã‚’示㙠(セーブã•ã‚Œã¦ã„ãªã„ã“ã¨ã‚’示ã™ï¼‰ ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãƒ—ãƒãƒ‘ティã®å€¤ã€‚以å‰ã® "
"Session ã§ã‚»ãƒ¼ãƒ–ã¾ãŸã¯ãƒãƒ¼ãƒ‰ã•ã‚ŒãŸåˆ†é›¢ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã¨åŒºåˆ¥ã™ã‚‹ãŸã‚ã«ä½¿ã„ã¾ã™ã€‚ "
"( <literal>undefined ã¯è˜åˆ¥åプãƒãƒ‘ティã®å€¤ãŒä½¿ã‚れるã“ã¨ã‚’指定ã—"
"ã¾ã™ã€‚)"
#. Tag: para
#: basic_mapping.xml:1567
#, fuzzy, no-c-format
msgid ""
"<literal>generated (optional - defaults to never for more information."
msgstr ""
"<literal>generated (オプション - デフォルト㯠never (optional - defaults to true ): "
"specifies whether the version column should be included in SQL insert "
"statements. It can be set to <literal>false if the database column "
"is defined with a default value of <literal>0."
msgstr ""
"<literal>insert (オプション - デフォルト㯠true ã¨å®šç¾©ã•ã‚Œã‚‹"
"ã¨ãã«ã¯ã€ <literal>false ã«è¨å®šã™ã‚‹ã¨è‰¯ã„ã§ã—ょã†ã€‚"
#. Tag: title
#: basic_mapping.xml:1586
#, fuzzy, no-c-format
msgid "Timestamp"
msgstr "timestamp(オプション)"
#. Tag: para
#: basic_mapping.xml:1588
#, fuzzy, no-c-format
msgid ""
"Alternatively, you can use a timestamp. Timestamps are a less safe "
"implementation of optimistic locking. However, sometimes an application "
"might use the timestamps in other ways as well."
msgstr ""
"オプション㮠<literal><timestamp> è¦ç´ ã¯ã€ãƒ†ãƒ¼ãƒ–ルãŒã‚¿ã‚¤ãƒ ス"
"タンプデータをå«ã‚€ã“ã¨ã‚’示ã—ã¾ã™ã€‚ã“ã‚Œã¯ãƒãƒ¼ã‚¸ãƒ§ãƒ³ä»˜ã‘ã®ä»£ã‚ã‚Šã®æ–¹æ³•ã¨ã—ã¦ç”¨"
"æ„ã•ã‚Œã¦ã„ã¾ã™ã€‚タイムスタンプã¯ã‚‚ã¨ã‚‚ã¨æ¥½è¦³çš„ãƒãƒƒã‚¯ã«ãŠã‘る安全性ã®ä½Žã„実装"
"ã§ã™ã€‚ã—ã‹ã—アプリケーションã¯ã‚¿ã‚¤ãƒ スタンプを異ãªã‚‹ç”¨é€”ã§ä½¿ã†ã“ã¨ã‚‚ã‚ã‚‹ã‹ã‚‚"
"ã—ã‚Œã¾ã›ã‚“。"
#. Tag: para
#: basic_mapping.xml:1592
#, no-c-format
msgid ""
"Simply mark a property of type <classname>Date or "
"<classname>Calendar as @Version ."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1596
#, no-c-format
msgid ""
"@Entity\n"
"public class Flight implements Serializable {\n"
"...\n"
" @Version\n"
" public Date getLastUpdate() { ... }\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1598
#, no-c-format
msgid ""
"When using timestamp versioning you can tell Hibernate where to retrieve the "
"timestamp value from - database or JVM - by optionally adding the "
"<classname>@org.hibernate.annotations.Source annotation to the "
"property. Possible values for the value attribute of the annotation are "
"<classname>org.hibernate.annotations.SourceType.VM and "
"<classname>org.hibernate.annotations.SourceType.DB. The default "
"is <classname>SourceType.DB which is also used in case there is "
"no <classname>@Source annotation at all."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1609
#, no-c-format
msgid ""
"Like in the case of version numbers, the timestamp can also be generated by "
"the database instead of Hibernate. To do that, use <code>@org.hibernate."
"annotations.Generated(GenerationTime.ALWAYS).</code>"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1613
#, fuzzy, no-c-format
msgid "In hbm.xml, use the <literal><timestamp> element:"
msgstr ""
"例ãˆã°ã€ã‚‚ã—以下ã®ã‚ˆã†ãª <literal><properties> マッピングãŒ"
"ã‚ã£ãŸå ´åˆï¼š"
#. Tag: programlisting
#: basic_mapping.xml:1631
#, fuzzy, no-c-format
msgid ""
"<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"
"/>"
#. Tag: para
#: basic_mapping.xml:1635
#, no-c-format
msgid ""
"<literal>column (optional - defaults to the property name): the "
"name of a column holding the timestamp."
msgstr ""
"<literal>column(オプション - デフォルトã¯ãƒ—ãƒãƒ‘ティå): タイムス"
"タンプをä¿æŒã™ã‚‹ã‚«ãƒ©ãƒ ã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:1641
#, no-c-format
msgid ""
"<literal>name: the name of a JavaBeans style property of Java type "
"<literal>Date or Timestamp of the persistent "
"class."
msgstr ""
"<literal>name : 永続クラスã§ã‚ã‚‹ Java ã® Date åž‹"
"ã¾ãŸã¯ <literal>Timestamp åž‹ ã®ã€ JavaBeans スタイルプãƒãƒ‘ティã®å"
"å‰ã€‚"
#. Tag: para
#: basic_mapping.xml:1647 basic_mapping.xml:2174 basic_mapping.xml:2391
#: basic_mapping.xml:3262 basic_mapping.xml:3456 basic_mapping.xml:3629
#, no-c-format
msgid ""
"<literal>access (optional - defaults to property (オプション - デフォルト㯠property (optional - defaults to null "
"specifies that the identifier property value should be used."
msgstr ""
"<literal>unsaved-value (オプション - デフォルト㯠null (optional - defaults to vm ): "
"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 (オプション - デフォルト㯠vm ãŒçŸ¥ã‚‰ã‚Œã¦ã„ã‚‹ã‚ã‘ã§ã¯ãªã„ã“ã¨ã«æ³¨æ„ã—ã¦"
"ãã ã•ã„。ã¾ãŸä¸€æ–¹ã§ã€ç²¾å¯†ã•ã‚’æ¬ ããŸã‚ã«ã€ãƒãƒƒã‚¯ã§ä½¿ç”¨ã™ã‚‹ã«ã¯å®‰å…¨ã§ãªã„ã‚‚ã®"
"ã‚‚ã‚ã‚Šã¾ã™ (例ãˆã° Oracle 8 )。"
#. Tag: para
#: basic_mapping.xml:1676
#, fuzzy, no-c-format
msgid ""
"<literal>generated (optional - defaults to never for more information."
msgstr ""
"<literal>generated (オプション - デフォルト㯠never is equivalent to <version "
"type=\"timestamp\"></literal>. And <timestamp source=\"db"
"\"></literal> is equivalent to <version type=\"dbtimestamp"
"\"></literal>"
msgstr ""
"<literal><timestamp> 㯠<version type=\"timestamp"
"\"></literal> ã¨ç‰ä¾¡ã§ã‚ã‚‹ã“ã¨ã«æ³¨æ„ã—ã¦ãã ã•ã„。 <timestamp "
"source=\"db\"></literal> 㯠<version type=\"dbtimestamp\">"
"</literal> ã¨ç‰ä¾¡ã§ã‚ã‚‹ã“ã¨ã«æ³¨æ„ã—ã¦ãã ã•ã„。"
#. Tag: title
#: basic_mapping.xml:1697
#, no-c-format
msgid "Property"
msgstr "property"
#. Tag: para
#: basic_mapping.xml:1699
#, no-c-format
msgid ""
"You need to decide which property needs to be made persistent in a given "
"entity. This differs slightly between the annotation driven metadata and the "
"hbm.xml files."
msgstr ""
#. Tag: title
#: basic_mapping.xml:1704
#, no-c-format
msgid "Property mapping with annotations"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1706
#, no-c-format
msgid ""
"In the annotations world, every non static non transient property (field or "
"method depending on the access type) of an entity is considered persistent, "
"unless you annotate it as <literal>@Transient . Not having an "
"annotation for your property is equivalent to the appropriate "
"<literal>@Basic annotation."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1713
#, no-c-format
msgid ""
"The <literal>@Basic annotation allows you to declare the fetching "
"strategy for a property. If set to <literal>LAZY , specifies that "
"this property should be fetched lazily when the instance variable is first "
"accessed. It requires build-time bytecode instrumentation, if your classes "
"are not instrumented, property level lazy loading is silently ignored. The "
"default is <literal>EAGER . You can also mark a property as not "
"optional thanks to the <classname>@Basic.optional attribute. "
"This will ensure that the underlying column are not nullable (if possible). "
"Note that a better approach is to use the <classname>@NotNull "
"annotation of the Bean Validation specification."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1726
#, no-c-format
msgid "Let's look at a few examples:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1728
#, no-c-format
msgid ""
"public transient int counter; //transient property\n"
"\n"
"private String firstname; //persistent property\n"
"\n"
"@Transient\n"
"String getLengthInMeter() { ... } //transient property\n"
"\n"
"String getName() {... } // persistent property\n"
"\n"
"@Basic\n"
"int getLength() { ... } // persistent property\n"
"\n"
"@Basic(fetch = FetchType.LAZY)\n"
"String getDetailedComment() { ... } // persistent property\n"
"\n"
"@Temporal(TemporalType.TIME)\n"
"java.util.Date getDepartureTime() { ... } // persistent property \n"
"\n"
"@Enumerated(EnumType.STRING)\n"
"Starred getNote() { ... } //enum persisted as String in database"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1730
#, no-c-format
msgid ""
"<literal>counter , a transient field, and lengthInMeter@Transient , and will be "
"ignored by the Hibernate. <literal>name , lengthfirstname properties are mapped persistent "
"and eagerly fetched (the default for simple properties). The "
"<literal>detailedComment property value will be lazily fetched "
"from the database once a lazy property of the entity is accessed for the "
"first time. Usually you don't need to lazy simple properties (not to be "
"confused with lazy association fetching). The recommended alternative is to "
"use the projection capability of JP-QL (Java Persistence Query Language) or "
"Criteria queries."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1743
#, no-c-format
msgid ""
"JPA support property mapping of all basic types supported by Hibernate (all "
"basic Java types , their respective wrappers and serializable classes). "
"Hibernate Annotations supports out of the box enum type mapping either into "
"a ordinal column (saving the enum ordinal) or a string based column (saving "
"the enum string representation): the persistence representation, defaulted "
"to ordinal, can be overridden through the <literal>@Enumerated "
"annotation as shown in the <literal>note property example."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1753
#, no-c-format
msgid ""
"In plain Java APIs, the temporal precision of time is not defined. When "
"dealing with temporal data you might want to describe the expected precision "
"in database. Temporal data can have <literal>DATE, TIMETIMESTAMP precision (ie the actual date, "
"only the time, or both). Use the <literal>@Temporal annotation to "
"fine tune that."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1761
#, no-c-format
msgid ""
"<literal>@Lob indicates that the property should be persisted in a "
"Blob or a Clob depending on the property type: <classname>java.sql.ClobCharacter[], char[]String will be persisted in "
"a Clob. <classname>java.sql.Blob, Byte[] , "
"<classname>byte[] and Serializable type "
"will be persisted in a Blob."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1770
#, no-c-format
msgid ""
"@Lob\n"
"public String getFullText() {\n"
" return fullText;\n"
"}\n"
"\n"
"@Lob\n"
"public byte[] getFullCode() {\n"
" return fullCode;\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1772
#, no-c-format
msgid ""
"If the property type implements <classname>java.io.Serializable "
"and is not a basic type, and if the property is not annotated with "
"<literal>@Lob, then the Hibernate serializable "
"type is used."
msgstr ""
#. Tag: title
#: basic_mapping.xml:1779
#, no-c-format
msgid "Type"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1781
#, no-c-format
msgid ""
"You can also manually specify a type using the <literal>@org.hibernate."
"annotations.Type</literal> and some parameters if needed. @Type."
"type</classname> could be:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1788 basic_mapping.xml:2220
#, 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> )。"
#. Tag: para
#: basic_mapping.xml:1794 basic_mapping.xml:2226
#, 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."
"String, java.util.Date, java.lang.Integer, java.sql.Clob</literal> )。"
#. Tag: para
#: basic_mapping.xml:1800 basic_mapping.xml:2232
#, no-c-format
msgid "The name of a serializable Java class."
msgstr "シリアライズå¯èƒ½ãª Java クラスã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:1804 basic_mapping.xml:2236
#, no-c-format
msgid ""
"The class name of a custom type: <literal>com.illflow.type.MyCustomType 属性ãŒå¿…è¦ãªå ´åˆãŒã‚ã‚Šã¾ã™ã€‚ (例ãˆã° "
"<literal>Hibernate.DATE 㨠Hibernate.TIMESTAMP "
"を区別ã™ã‚‹ãŸã‚ã€ã¾ãŸã¯ã‚«ã‚¹ã‚¿ãƒ 型を指定ã™ã‚‹ãŸã‚ãªã©ã§ã™ã€‚)"
#. Tag: para
#: basic_mapping.xml:1814
#, no-c-format
msgid ""
"<literal>@org.hibernate.annotations.TypeDef and @org."
"hibernate.annotations.TypeDefs</literal> allows you to declare type "
"definitions. These annotations can be placed at the class or package level. "
"Note that these definitions are global for the session factory (even when "
"defined at the class level). If the type is used on a single entity, you can "
"place the definition on the entity itself. Otherwise, it is recommended to "
"place the definition at the package level. In the example below, when "
"Hibernate encounters a property of class <literal>PhoneNumer , it "
"delegates the persistence strategy to the custom mapping type "
"<literal>PhoneNumberType. However, properties belonging to other "
"classes, too, can delegate their persistence strategy to "
"<literal>PhoneNumberType, by explicitly using the @Type "
"attribute to customize the TypeDef."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1841
#, no-c-format
msgid ""
"//in org/hibernate/test/annotations/entity/package-info.java\n"
"@TypeDefs(\n"
" {\n"
" @TypeDef(\n"
" name=\"caster\",\n"
" typeClass = CasterStringType.class,\n"
" parameters = {\n"
" @Parameter(name=\"cast\", value=\"lower\")\n"
" }\n"
" )\n"
" }\n"
")\n"
"package org.hibernate.test.annotations.entity;\n"
"\n"
"//in org/hibernate/test/annotations/entity/Forest.java\n"
"public class Forest {\n"
" @Type(type=\"caster\")\n"
" public String getSmallText() {\n"
" ...\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1843
#, no-c-format
msgid ""
"When using composite user type, you will have to express column definitions. "
"The <literal>@Columns has been introduced for that purpose."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1847
#, no-c-format
msgid ""
"@Type(type=\"org.hibernate.test.annotations.entity.MonetaryAmountUserType"
"\")\n"
"@Columns(columns = {\n"
" @Column(name=\"r_amount\"),\n"
" @Column(name=\"r_currency\")\n"
"})\n"
"public MonetaryAmount getAmount() {\n"
" return amount;\n"
"}\n"
"\n"
"\n"
"public class MonetaryAmount implements Serializable {\n"
" private BigDecimal amount;\n"
" private Currency currency;\n"
" ...\n"
"}"
msgstr ""
#. Tag: title
#: basic_mapping.xml:1851
#, no-c-format
msgid "Access type"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1853
#, no-c-format
msgid ""
"By default the access type of a class hierarchy is defined by the position "
"of the <classname>@Id or @EmbeddedId "
"annotations. If these annotations are on a field, then only fields are "
"considered for persistence and the state is accessed via the field. If there "
"annotations are on a getter, then only the getters are considered for "
"persistence and the state is accessed via the getter/setter. That works well "
"in practice and is the recommended approach."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1861
#, no-c-format
msgid ""
"The placement of annotations within a class hierarchy has to be consistent "
"(either field or on property) to be able to determine the default access "
"type. It is recommended to stick to one single annotation placement strategy "
"throughout your whole application."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1868
#, no-c-format
msgid "However in some situations, you need to:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1872
#, no-c-format
msgid "force the access type of the entity hierarchy"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1876
#, no-c-format
msgid "override the access type of a specific entity in the class hierarchy"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1881
#, no-c-format
msgid "override the access type of an embeddable type"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1885
#, no-c-format
msgid ""
"The best use case is an embeddable class used by several entities that might "
"not use the same access type. In this case it is better to force the access "
"type at the embeddable class level."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1890
#, no-c-format
msgid ""
"To force the access type on a given class, use the <classname>@Access "
"except for the <literal>orderNumber property. Note that the "
"corresponding field, if any must be marked as <classname>@Transienttransient."
msgstr ""
#. Tag: title
#: basic_mapping.xml:1907
#, no-c-format
msgid "@org.hibernate.annotations.AccessType"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1909
#, no-c-format
msgid ""
"The annotation <classname>@org.hibernate.annotations.AccessType "
"should be considered deprecated for FIELD and PROPERTY access. It is still "
"useful however if you need to use a custom access type."
msgstr ""
#. Tag: title
#: basic_mapping.xml:1918
#, no-c-format
msgid "Optimistic lock"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1920
#, no-c-format
msgid ""
"It is sometimes useful to avoid increasing the version number even if a "
"given property is dirty (particularly collections). You can do that by "
"annotating the property (or collection) with <literal>@OptimisticLock"
"(excluded=true)</literal>."
msgstr ""
#. Tag: para
#: basic_mapping.xml:1925
#, no-c-format
msgid ""
"More formally, specifies that updates to this property do not require "
"acquisition of the optimistic lock."
msgstr ""
#. Tag: title
#: basic_mapping.xml:1930
#, no-c-format
msgid "Declaring column attributes"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1932
#, no-c-format
msgid ""
"The column(s) used for a property mapping can be defined using the "
"<literal>@Column annotation. Use it to override default values "
"(see the JPA specification for more information on the defaults). You can "
"use this annotation at the property level for properties that are:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1940
#, no-c-format
msgid "not annotated at all"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1944
#, fuzzy, no-c-format
msgid "annotated with <literal>@Basic"
msgstr "<literal>sequence-identity"
#. Tag: para
#: basic_mapping.xml:1948
#, fuzzy, no-c-format
msgid "annotated with <literal>@Version"
msgstr "<literal>sequence-identity"
#. Tag: para
#: basic_mapping.xml:1952
#, fuzzy, no-c-format
msgid "annotated with <literal>@Lob"
msgstr "<literal>sequence-identity"
#. Tag: para
#: basic_mapping.xml:1956
#, fuzzy, no-c-format
msgid "annotated with <literal>@Temporal"
msgstr "<literal>sequence-identity"
#. Tag: programlisting
#: basic_mapping.xml:1960
#, no-c-format
msgid ""
"@Entity\n"
"public class Flight implements Serializable {\n"
"...\n"
"@Column(updatable = false, name = \"flight_name\", nullable = false, "
"length=50)\n"
"public String getName() { ... }"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1962
#, no-c-format
msgid ""
"The <literal>name property is mapped to the flight_name or @Version properties."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:1994
#, no-c-format
msgid ""
"@Column(\n"
" name=\"columnName\";\n"
" boolean unique() default false;\n"
" boolean nullable() default true;\n"
" boolean insertable() default true;\n"
" boolean updatable() default true;\n"
" String columnDefinition() default \"\";\n"
" String table() default \"\";\n"
" int length() default 255;\n"
" int precision() default 0; // decimal precision\n"
" int scale() default 0; // decimal scale"
msgstr ""
#. Tag: para
#: basic_mapping.xml:1998
#, fuzzy, no-c-format
msgid ""
"<literal>name (optional): the column name (default to the property "
"name)"
msgstr "<literal>name(オプション):è˜åˆ¥åプãƒãƒ‘ティã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:2003
#, fuzzy, no-c-format
msgid ""
"<literal>unique (optional): set a unique constraint on this column "
"or not (default false)"
msgstr ""
"<literal>unique (オプション):カラムã«ãƒ¦ãƒ‹ãƒ¼ã‚¯åˆ¶ç´„ã‚’ã¤ã‘ã‚‹ DDL ã®ç”Ÿ"
"æˆã‚’å¯èƒ½ã«ã—ã¾ã™ã€‚ã¾ãŸã€ <literal>property-ref ã®ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã¨ã™ã‚‹ã“"
"ã¨ã‚‚ã§ãã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2008
#, fuzzy, no-c-format
msgid ""
"<literal>nullable (optional): set the column as nullable (default "
"true)."
msgstr "<literal>name(オプション):è˜åˆ¥åプãƒãƒ‘ティã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:2013
#, fuzzy, no-c-format
msgid ""
"<literal>insertable (optional): whether or not the column will be "
"part of the insert statement (default true)"
msgstr "<literal>name(オプション):è˜åˆ¥åプãƒãƒ‘ティã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:2019
#, fuzzy, no-c-format
msgid ""
"<literal>updatable (optional): whether or not the column will be "
"part of the update statement (default true)"
msgstr ""
"<literal>catalog (オプション):データベースカタãƒã‚°ã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:2025
#, no-c-format
msgid ""
"<literal>columnDefinition (optional): override the sql DDL "
"fragment for this particular column (non portable)"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2031
#, fuzzy, no-c-format
msgid ""
"<literal>table (optional): define the targeted table (default "
"primary table)"
msgstr ""
"<literal>catalog (オプション):データベースカタãƒã‚°ã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:2036
#, no-c-format
msgid ""
"<literal>length (optional): column length "
"(default 255)"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2041
#, no-c-format
msgid ""
"<literal>precision (optional): column decimal "
"precision (default 0)"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2046
#, no-c-format
msgid ""
"<literal>scale (optional): column decimal scale "
"if useful (default 0)"
msgstr ""
#. Tag: title
#: basic_mapping.xml:2054
#, no-c-format
msgid "Formula"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2056
#, no-c-format
msgid ""
"Sometimes, you want the Database to do some computation for you rather than "
"in the JVM, you might also create some kind of virtual column. You can use a "
"SQL fragment (aka formula) instead of mapping a property into a column. This "
"kind of property is read only (its value is calculated by your formula "
"fragment)."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2062
#, no-c-format
msgid ""
"@Formula(\"obj_length * obj_height * obj_width\")\n"
"public long getObjectVolume()"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2064
#, no-c-format
msgid ""
"The SQL fragment can be as complex as you want and even include subselects."
msgstr ""
#. Tag: title
#: basic_mapping.xml:2069
#, no-c-format
msgid "Non-annotated property defaults"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2071
#, no-c-format
msgid "If a property is not annotated, the following rules apply:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2074
#, no-c-format
msgid "If the property is of a single type, it is mapped as @Basic"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2079
#, no-c-format
msgid ""
"Otherwise, if the type of the property is annotated as @Embeddable, it is "
"mapped as @Embedded"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2084
#, no-c-format
msgid ""
"Otherwise, if the type of the property is <classname>Serializable@Basic in a column "
"holding the object in its serialized version"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2091
#, no-c-format
msgid ""
"Otherwise, if the type of the property is <classname>java.sql.Clobjava.sql.Blob, it is mapped as "
"<classname>@Lob with the appropriate LobType element declares a persistent "
"JavaBean style property of the class."
msgstr ""
"<literal><property> è¦ç´ ã¯ã€ã‚¯ãƒ©ã‚¹ã®æ°¸ç¶šçš„㪠JavaBean スタイ"
"ルã®ãƒ—ãƒãƒ‘ティを定義ã—ã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:2136
#, fuzzy, no-c-format
msgid ""
"<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"
"/>"
#. Tag: para
#: basic_mapping.xml:2140
#, no-c-format
msgid ""
"<literal>name: the name of the property, with an initial lowercase "
"letter."
msgstr "<literal>name: å°æ–‡å—ã§å§‹ã¾ã‚‹ãƒ—ãƒãƒ‘ティå。"
#. Tag: para
#: basic_mapping.xml:2145
#, no-c-format
msgid ""
"<literal>column (optional - defaults to the property name): the "
"name of the mapped database table column. This can also be specified by "
"nested <literal><column> element(s)."
msgstr ""
"<literal>column(オプション - デフォルトã¯ãƒ—ãƒãƒ‘ティå): マッピン"
"ã‚°ã•ã‚ŒãŸãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãƒ†ãƒ¼ãƒ–ルã®ã‚«ãƒ©ãƒ ã®åå‰ã€‚ãƒã‚¹ãƒˆã—㟠<literal><"
"column></literal> è¦ç´ ã§ã‚‚指定ã§ãã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2157
#, no-c-format
msgid ""
"<literal>update, insert (optional - defaults to true and/or INSERT statements. "
"Setting both to <literal>false 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 ""
"<literal>update, insert (オプション - デフォルト㯠trueUPDATE や "
"<literal>INSERT ã«å«ã¾ã‚Œã‚‹ã“ã¨ã‚’指定ã—ã¾ã™ã€‚両方ã¨ã‚‚ "
"<literal>false ã«è¨å®šã™ã‚‹ã¨ã€åŒã˜ã‚«ãƒ©ãƒ ã«ãƒžãƒƒãƒ”ングã•ã‚ŒãŸä»–ã®ãƒ—ãƒãƒ‘"
"ティやトリガや他ã®ã‚¢ãƒ—リケーションã«ã‚ˆã£ã¦åˆæœŸåŒ–ã•ã‚ŒãŸç´”粋ãªã€Œå°Žå‡ºã€ãƒ—ãƒãƒ‘"
"ティãŒå¯èƒ½ã«ãªã‚Šã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2167
#, no-c-format
msgid ""
"<literal>formula (optional): an SQL expression that defines the "
"value for a <emphasis>computed property. Computed properties do "
"not have a column mapping of their own."
msgstr ""
"<literal>formula(オプション): 計算 プãƒãƒ‘"
"ティã®ãŸã‚ã®å€¤ã‚’定義ã™ã‚‹ SQL å¼ã€‚計算ã•ã‚ŒãŸãƒ—ãƒãƒ‘ティã¯è‡ªèº«ã®ã‚«ãƒ©ãƒ ã¸ã®ãƒžãƒƒãƒ”"
"ングãŒã‚ã‚Šã¾ã›ã‚“。"
#. Tag: para
#: basic_mapping.xml:2180
#, no-c-format
msgid ""
"<literal>lazy (optional - defaults to false ): "
"specifies that this property should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
"<literal>lazy (オプション - デフォルト㯠false (optional): enables the DDL generation of a unique "
"constraint for the columns. Also, allow this to be the target of a "
"<literal>property-ref ."
msgstr ""
"<literal>unique (オプション):カラムã«ãƒ¦ãƒ‹ãƒ¼ã‚¯åˆ¶ç´„ã‚’ã¤ã‘ã‚‹ DDL ã®ç”Ÿ"
"æˆã‚’å¯èƒ½ã«ã—ã¾ã™ã€‚ã¾ãŸã€ <literal>property-ref ã®ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã¨ã™ã‚‹ã“"
"ã¨ã‚‚ã§ãã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2194
#, fuzzy, no-c-format
msgid ""
"<literal>not-null (optional): enables the DDL generation of a "
"nullability constraint for the columns."
msgstr ""
"<literal>not-null (オプション):カラム㫠null 値を許å¯ã™ã‚‹ DDL ã®ç”Ÿ"
"æˆã‚’å¯èƒ½ã«ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2199 basic_mapping.xml:3282
#, no-c-format
msgid ""
"<literal>optimistic-lock (optional - defaults to true (オプション - デフォルト㯠true (optional - defaults to never for more information."
msgstr ""
"<literal>generated (オプション - デフォルト㯠never could be:"
msgstr "<emphasis>typename ã«ã¯ä»¥ä¸‹ã®å€¤ãŒå¯èƒ½ã§ã™ï¼š"
#. Tag: para
#: basic_mapping.xml:2241
#, 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>typeHibernate."
"DATE</literal> and Hibernate.TIMESTAMP , or to specify a "
"custom type."
msgstr ""
"型を指定ã—ãªã‘ã‚Œã°ã€ Hibernate ã¯æ£ã—ã„ Hibernate ã®åž‹ã‚’推測ã™ã‚‹ãŸã‚ã«ã€æŒ‡å®š"
"ã•ã‚ŒãŸãƒ—ãƒãƒ‘ティã«å¯¾ã—ã¦ãƒªãƒ•ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’使ã„ã¾ã™ã€‚ Hibernate ã¯ãƒ«ãƒ¼ãƒ«2, 3, 4"
"ã‚’ãã®é †åºã«ä½¿ã„〠getter プãƒãƒ‘ティã®è¿”り値ã®ã‚¯ãƒ©ã‚¹ã®åå‰ã‚’解釈ã—よã†ã¨ã—ã¾"
"ã™ã€‚ã—ã‹ã—ã“ã‚Œã§å¸¸ã«å分ã§ã‚ã‚‹ã¨ã¯é™ã‚Šã¾ã›ã‚“ã€‚å ´åˆã«ã‚ˆã£ã¦ã¯ã€ "
"<literal>type 属性ãŒå¿…è¦ãªå ´åˆãŒã‚ã‚Šã¾ã™ã€‚ (例ãˆã° "
"<literal>Hibernate.DATE 㨠Hibernate.TIMESTAMP "
"を区別ã™ã‚‹ãŸã‚ã€ã¾ãŸã¯ã‚«ã‚¹ã‚¿ãƒ 型を指定ã™ã‚‹ãŸã‚ãªã©ã§ã™ã€‚)"
#. Tag: para
#: basic_mapping.xml:2250
#, no-c-format
msgid ""
"The <literal>access 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\", "
"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 ""
"<literal>access 属性ã§ã€å®Ÿè¡Œæ™‚ã« Hibernate ãŒã©ã®ã‚ˆã†ã«ãƒ—ãƒãƒ‘ティã«"
"アクセスã™ã‚‹ã‹ã‚’制御ã§ãã¾ã™ã€‚デフォルトã§ã¯ Hibernate ã¯ãƒ—ãƒãƒ‘ティ㮠get/"
"set ã®ãƒšã‚¢ã‚’コールã—ã¾ã™ã€‚ <literal>access=\"field\" ã¨æŒ‡å®šã™ã‚Œ"
"ã°ã€ Hibernate ã¯ãƒªãƒ•ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’使ㄠget/set ã®ãƒšã‚¢ã‚’介ã•ãšã«ã€ç›´æŽ¥ãƒ•ã‚£ãƒ¼ãƒ«"
"ドã«ã‚¢ã‚¯ã‚»ã‚¹ã—ã¾ã™ã€‚インターフェース <literal>org.hibernate.property."
"PropertyAccessor</literal> を実装ã™ã‚‹ã‚¯ãƒ©ã‚¹ã‚’指定ã™ã‚‹ã“ã¨ã§ã€ãƒ—ãƒãƒ‘ティã¸ã®ã‚¢"
"クセスã«ç‹¬è‡ªã®æˆ¦ç•¥ã‚’指定ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2259
#, 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 in the given example. "
"You can also use the nested <literal><formula> mapping "
"element if you do not want to use the attribute."
msgstr ""
"特定ã®ã‚«ãƒ©ãƒ (例ã§ã¯ <literal>customerId ãŒãã‚Œã«ã‚ãŸã‚Šã¾ã™)ã®ã‚¨ã‚¤ãƒª"
"アスを宣言ã™ã‚‹ã“ã¨ãªãã€ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£è‡ªèº«ã®ãƒ†ãƒ¼ãƒ–ルをå‚ç…§ã§ãã‚‹ã“ã¨ã«æ³¨æ„ã—ã¦"
"ãã ã•ã„。もã—属性を使用ã—ãŸããªã‘ã‚Œã°ã€ãƒã‚¹ãƒˆã—㟠<literal><formula> è¦ç´ ã¯ã€åオブジェクトã®ãƒ—ãƒãƒ‘ティを親ク"
"ラスã®ãƒ†ãƒ¼ãƒ–ルã®ã‚«ãƒ©ãƒ ã¸ãƒžãƒƒãƒ”ングã—ã¾ã™ã€‚コンãƒãƒ¼ãƒãƒ³ãƒˆã¯è‡ªåˆ†ã®ãƒ—ãƒãƒ‘ティã€"
"コンãƒãƒ¼ãƒãƒ³ãƒˆã€ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã®é †ã«å®šç¾©ã§ãã¾ã™ã€‚以下ã®ã€Œã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã€ã‚’見"
"ã¦ãã ã•ã„。"
#. Tag: para
#: basic_mapping.xml:2283
#, no-c-format
msgid ""
"It is possible to declare an embedded component inside an entity and even "
"override its column mapping. Component classes have to be annotated at the "
"class level with the <literal>@Embeddable annotation. It is "
"possible to override the column mapping of an embedded object for a "
"particular entity using the <literal>@Embedded and "
"<literal>@AttributeOverride annotation in the associated property:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2291
#, no-c-format
msgid ""
"@Entity\n"
"public class Person implements Serializable {\n"
"\n"
" // Persistent component using defaults\n"
" Address homeAddress;\n"
"\n"
" @Embedded\n"
" @AttributeOverrides( {\n"
" @AttributeOverride(name=\"iso2\", column = @Column(name="
"\"bornIso2\") ),\n"
" @AttributeOverride(name=\"name\", column = @Column(name="
"\"bornCountryName\") )\n"
" } )\n"
" Country bornIn;\n"
" ...\n"
"}"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2293
#, no-c-format
msgid ""
"@Embeddable\n"
"public class Address implements Serializable {\n"
" String city;\n"
" Country nationality; //no overriding here\n"
"}"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2295
#, no-c-format
msgid ""
"@Embeddable\n"
"public class Country implements Serializable {\n"
" private String iso2;\n"
" @Column(name=\"countryName\") private String name;\n"
"\n"
" public String getIso2() { return iso2; }\n"
" public void setIso2(String iso2) { this.iso2 = iso2; }\n"
"\n"
" \n"
" public String getName() { return name; }\n"
" public void setName(String name) { this.name = name; }\n"
" ...\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2297
#, no-c-format
msgid ""
"An embeddable object inherits the access type of its owning entity (note "
"that you can override that using the <literal>@Access annotation)."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2301
#, no-c-format
msgid ""
"The <literal>Person entity has two component properties, "
"<literal>homeAddress and bornIn . "
"<literal>homeAddress property has not been annotated, but "
"Hibernate will guess that it is a persistent component by looking for the "
"<literal>@Embeddable annotation in the Address class. We also "
"override the mapping of a column name (to <literal>bornCountryName@Embedded and "
"<literal>@AttributeOverride annotations for each mapped attribute "
"of <literal>Country. As you can see, Country is "
"also a nested component of <literal>Address, again using auto-"
"detection by Hibernate and JPA defaults. Overriding columns of embedded "
"objects of embedded objects is through dotted expressions."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2316
#, no-c-format
msgid ""
"@Embedded\n"
" @AttributeOverrides( {\n"
" @AttributeOverride(name=\"city\", column = @Column(name="
"\"fld_city\") ),\n"
" @AttributeOverride(name=\"nationality.iso2\", column = @Column"
"(name=\"nat_Iso2\") ),\n"
" @AttributeOverride(name=\"nationality.name\", column = @Column"
"(name=\"nat_CountryName\") )\n"
" //nationality columns in homeAddress are overridden\n"
" } )\n"
" Address homeAddress;"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2318
#, no-c-format
msgid ""
"Hibernate Annotations supports something that is not explicitly supported by "
"the JPA specification. You can annotate a embedded object with the "
"<literal>@MappedSuperclass annotation to make the superclass "
"properties persistent (see <literal>@MappedSuperclass for more "
"informations)."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2324
#, no-c-format
msgid ""
"You can also use association annotations in an embeddable object (ie "
"<literal>@OneToOne, @ManyToOne , "
"<classname>@OneToMany or @ManyToMany ). To "
"override the association columns you can use <literal>@AssociationOverride "
"interface. You can write a strategy that prevent name clashing in such a "
"situation. <classname>DefaultComponentSafeNamingStrategy is an "
"example of this."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2340
#, no-c-format
msgid ""
"If a property of the embedded object points back to the owning entity, "
"annotate it with the <classname>@Parent annotation. Hibernate "
"will make sure this property is properly loaded with the entity reference."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2345
#, no-c-format
msgid "In XML, use the <literal><component> element."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2367
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:2371 basic_mapping.xml:3217 basic_mapping.xml:3417
#, no-c-format
msgid "<literal>name: the name of the property."
msgstr "<literal>name:プãƒãƒ‘ティå。"
#. Tag: para
#: basic_mapping.xml:2375
#, no-c-format
msgid ""
"<literal>class (optional - defaults to the property type "
"determined by reflection): the name of the component (child) class."
msgstr ""
"<literal>class (オプション - デフォルトã¯ãƒªãƒ•ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã«ã‚ˆã‚Šæ±ºå®š"
"ã•ã‚Œã‚‹ãƒ—ãƒãƒ‘ティã®åž‹ï¼‰ï¼š コンãƒãƒ¼ãƒãƒ³ãƒˆï¼ˆå)クラスã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:2381 basic_mapping.xml:3677
#, no-c-format
msgid ""
"<literal>insert: do the mapped columns appear in SQL "
"<literal>INSERTs?"
msgstr ""
"<literal>insert:マッピングã•ã‚ŒãŸã‚«ãƒ©ãƒ ㌠SQL ã® INSERT: do the mapped columns appear in SQL "
"<literal>UPDATEs ?"
msgstr ""
"<literal>update:マッピングã•ã‚ŒãŸã‚«ãƒ©ãƒ ㌠SQL ã® UPDATE (optional - defaults to false ): "
"specifies that this component should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
"<literal>lazy (オプション - デフォルト㯠false (optional - defaults to true (オプション - デフォルト㯠true (optional - defaults to false ): "
"specifies that a unique constraint exists upon all mapped columns of the "
"component."
msgstr ""
"<literal>unique (オプション - デフォルト㯠false tags map properties of the "
"child class to table columns."
msgstr ""
"åã® <literal><property> ã‚¿ã‚°ã§ã€åã®ã‚¯ãƒ©ã‚¹ã®ãƒ—ãƒãƒ‘ティをテー"
"ブルカラムã«ãƒžãƒƒãƒ”ングã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2422
#, no-c-format
msgid ""
"The <literal><component> element allows a <"
"parent></literal> subelement that maps a property of the component class "
"as a reference back to the containing entity."
msgstr ""
"<literal><component> è¦ç´ ã¯ã€è¦ªã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã¸æˆ»ã‚‹å‚ç…§ã¨ã—ã¦ã€"
"コンãƒãƒ¼ãƒãƒ³ãƒˆã®ã‚¯ãƒ©ã‚¹ã®ãƒ—ãƒãƒ‘ティをマッピングã™ã‚‹ <literal><parent> element allows a "
"<literal>Map to be mapped as a component, where the property names "
"refer to keys of the map. See <xref linkend=\"components-dynamic\"/> for "
"more information. This feature is not supported in annotations."
msgstr ""
"<literal><dynamic-component> è¦ç´ ã¯ã€ Map "
"ãŒã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã¨ã—ã¦ãƒžãƒƒãƒ”ングã•ã‚Œã‚‹ã“ã¨ã‚’å¯èƒ½ã«ã—ã¾ã™ã€‚プãƒãƒ‘ティå㯠map "
"ã®ã‚ーをå‚ç…§ã—ã¾ã™ã€‚<xref linkend=\"components-dynamic\"/> ã‚’å‚ç…§ã—ã¦ãã ã•"
"ã„。"
#. Tag: title
#: basic_mapping.xml:2434
#, no-c-format
msgid "Inheritance strategy"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2436
#, no-c-format
msgid ""
"Java is a language supporting polymorphism: a class can inherit from "
"another. Several strategies are possible to persist a class hierarchy:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2442
#, no-c-format
msgid ""
"Single table per class hierarchy strategy: a single table hosts all the "
"instances of a class hierarchy"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2447
#, no-c-format
msgid ""
"Joined subclass strategy: one table per class and subclass is present and "
"each table persist the properties specific to a given subclass. The state of "
"the entity is then stored in its corresponding class table and all its "
"superclasses"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2454
#, no-c-format
msgid ""
"Table per class strategy: one table per concrete class and subclass is "
"present and each table persist the properties of the class and its "
"superclasses. The state of the entity is then stored entirely in the "
"dedicated table for its class."
msgstr ""
#. Tag: title
#: basic_mapping.xml:2462
#, no-c-format
msgid "Single table per class hierarchy strategy"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2464
#, no-c-format
msgid ""
"With this approach the properties of all the subclasses in a given mapped "
"class hierarchy are stored in a single table."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2467
#, fuzzy, no-c-format
msgid ""
"Each subclass declares its own persistent properties and subclasses. Version "
"and id properties are assumed to be inherited from the root class. Each "
"subclass in a hierarchy must define a unique discriminator value. If this is "
"not specified, the fully qualified Java class name is used."
msgstr ""
"å„サブクラスã§ã¯ã€æ°¸ç¶šãƒ—ãƒãƒ‘ティã¨ã‚µãƒ–クラスを定義ã—ã¾ã™ã€‚ <literal><"
"version></literal> 㨠<id> プãƒãƒ‘ティã¯ã€ãƒ«ãƒ¼ãƒˆã‚¯"
"ラスã‹ã‚‰ç¶™æ‰¿ã•ã‚Œã‚‹ã¨ä»®å®šã•ã‚Œã¾ã™ã€‚éšŽå±¤æ§‹é€ ã«ãŠã‘るサブクラスã¯ã€ãƒ¦ãƒ‹ãƒ¼ã‚¯ãª "
"<literal>discriminator-value を定義ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。 none ãŒæŒ‡"
"定ã•ã‚Œã‚‹ã¨ã€å®Œå…¨ä¿®é£¾ã•ã‚ŒãŸ Java クラスåãŒä½¿ã‚ã‚Œã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:2473 basic_mapping.xml:2581
#, no-c-format
msgid ""
"@Entity\n"
"@Inheritance(strategy=InheritanceType.SINGLE_TABLE)\n"
"@DiscriminatorColumn(\n"
" name=\"planetype\",\n"
" discriminatorType=DiscriminatorType.STRING\n"
")\n"
"@DiscriminatorValue(\"Plane\")\n"
"public class Plane { ... }\n"
"\n"
"@Entity\n"
"@DiscriminatorValue(\"A320\")\n"
"public class A320 extends Plane { ... }"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2475
#, fuzzy, no-c-format
msgid ""
"In hbm.xml, for the table-per-class-hierarchy mapping strategy, the "
"<literal><subclass> declaration is used. For example:"
msgstr ""
"最後ã«ãƒãƒªãƒ¢ãƒ¼ãƒ•ã‚£ãƒƒã‚¯ãªæ°¸ç¶šåŒ–ã«ã¯ã€ãƒ«ãƒ¼ãƒˆã®æ°¸ç¶šã‚¯ãƒ©ã‚¹ã®å„サブクラスã®å®šç¾©ãŒ"
"å¿…è¦ã§ã™ã€‚ table-per-class-hierarchy マッピング戦略ã§ã¯ã€ <literal><"
"subclass></literal> 定義ãŒä½¿ã‚ã‚Œã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:2490
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:2494 basic_mapping.xml:2692 basic_mapping.xml:2756
#, no-c-format
msgid ""
"<literal>name: the fully qualified class name of the subclass."
msgstr "<literal>name:サブクラスã®å®Œå…¨ä¿®é£¾ã•ã‚ŒãŸã‚¯ãƒ©ã‚¹å。"
#. Tag: para
#: basic_mapping.xml:2499
#, no-c-format
msgid ""
"<literal>discriminator-value (optional - defaults to the class "
"name): a value that distinguishes individual subclasses."
msgstr ""
"<literal>discriminator-value(オプション - デフォルトã¯ã‚¯ãƒ©ã‚¹"
"å): 個々ã®ã‚µãƒ–クラスを区別ã™ã‚‹ãŸã‚ã®å€¤ã€‚"
#. Tag: para
#: basic_mapping.xml:2505
#, no-c-format
msgid ""
"<literal>proxy (optional): specifies a class or interface used for "
"lazy initializing proxies."
msgstr ""
"<literal>proxy (オプション): é…延åˆæœŸåŒ–プãƒã‚ã‚·ã«ä½¿ç”¨ã™ã‚‹ã‚¯ãƒ©ã‚¹ã‚„イ"
"ンターフェースを指定ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2510
#, no-c-format
msgid ""
"<literal>lazy (optional - defaults to true ): "
"setting <literal>lazy=\"false\" disables the use of lazy fetching."
msgstr ""
"<literal>lazy (オプションã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã¯ true ): "
"<literal>lazy=\"false\" ã¨ã™ã‚‹ã¨ã€é…延フェッãƒãŒä½¿ç”¨ã§ãã¾ã›ã‚“。"
#. Tag: para
#: basic_mapping.xml:2518 basic_mapping.xml:2721 basic_mapping.xml:2782
#, fuzzy, no-c-format
msgid ""
"For information about inheritance mappings see <xref linkend=\"inheritance\"/"
">."
msgstr ""
"継承ã®ãƒžãƒƒãƒ”ングã«é–¢ã™ã‚‹æƒ…å ±ã¯ <xref linkend=\"inheritance\"/> ã‚’å‚ç…§ã—ã¦ãã "
"ã•ã„。"
#. Tag: title
#: basic_mapping.xml:2522
#, no-c-format
msgid "Discriminator"
msgstr "discriminator"
#. Tag: para
#: basic_mapping.xml:2524
#, fuzzy, no-c-format
msgid ""
"Discriminators are 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. "
"Hibernate Core supports the follwoing restricted set of types as "
"discriminator column: <literal>string, characterinteger , byte , "
"<literal>short, boolean , yes_notrue_false ."
msgstr ""
"<literal><discriminator> è¦ç´ ã¯ã€ table-per-class-hierarchy "
"マッピング戦略を使ã†ãƒãƒªãƒ¢ãƒ¼ãƒ•ã‚£ãƒƒã‚¯ãªæ°¸ç¶šåŒ–ã«å¿…è¦ã§ã‚ã‚Šã€ãƒ†ãƒ¼ãƒ–ルã®è˜åˆ¥ã‚«ãƒ©"
"ムを定義ã—ã¾ã™ã€‚è˜åˆ¥ã‚«ãƒ©ãƒ ã¯ã€ã‚ã‚‹è¡Œã«å¯¾ã—ã¦æ°¸ç¶šå±¤ãŒã©ã®ã‚µãƒ–クラスをインスタ"
"ンス化ã™ã‚‹ã‹ã‚’ä¼ãˆã‚‹ãƒžãƒ¼ã‚«ãƒ¼å€¤ã‚’å«ã‚“ã§ã„ã¾ã™ã€‚以下ã®ã‚ˆã†ãªåž‹ã«åˆ¶é™ã•ã‚Œã¾ã™ï¼š "
"<literal>string , character , integerbyte , short , "
"<literal>boolean , yes_no , "
"<literal>true_false."
#. Tag: para
#: basic_mapping.xml:2535
#, no-c-format
msgid ""
"Use the <classname>@DiscriminatorColumn to define the "
"discriminator column as well as the discriminator type. <note> "
"<para>The enum DiscriminatorType used in "
"<classname>javax.persitence.DiscriminatorColumn only contains "
"the values <constant>STRING, CHAR and "
"<constant>INTEGER which means that not all Hibernate supported "
"types are available via the <classname>@DiscriminatorColumn "
"annotation.</para> You can also use @DiscriminatorFormula@DiscriminatorFormula are to be set on "
"the root entity (once per persisted hierarchy)."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2552
#, no-c-format
msgid ""
"<classname>@org.hibernate.annotations.DiscriminatorOptions "
"allows to optionally specify Hibernate specific discriminator options which "
"are not standardized in JPA. The available options are <literal>forceinsert. The force "
"attribute is useful if the table contains rows with \"extra\" discriminator "
"values that are not mapped to a persistent class. This could for example "
"occur when working with a legacy database. If <literal>force is "
"set to <constant>true Hibernate will specify the allowed "
"discriminator values in the <literal>SELECT query, even when "
"retrieving all instances of the root class. The second option - "
"<literal>insert - tells Hibernate whether or not to include the "
"discriminator column in SQL <literal>INSERTs. Usually the column "
"should be part of the <literal>INSERT statement, but if your "
"discriminator column is also part of a mapped composite identifier you have "
"to set this option to <constant>false."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2569
#, no-c-format
msgid ""
"There is also a <classname>@org.hibernate.annotations.ForceDiscriminator instead."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2575
#, no-c-format
msgid ""
"Finally, use <classname>@DiscriminatorValue on each class of the "
"hierarchy to specify the value stored in the discriminator column for a "
"given entity. If you do not set <classname>@DiscriminatorValue "
"on a class, the fully qualified class name is used."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2583
#, no-c-format
msgid ""
"In hbm.xml, the <literal><discriminator> element is used to "
"define the discriminator column or formula:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2600
#, fuzzy, no-c-format
msgid ""
"<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"
"/>"
#. Tag: para
#: basic_mapping.xml:2604
#, no-c-format
msgid ""
"<literal>column (optional - defaults to class ): "
"the name of the discriminator column."
msgstr ""
"<literal>column(オプション - デフォルト㯠class (optional - defaults to string ): "
"a name that indicates the Hibernate type"
msgstr ""
"<literal>type (オプション - デフォルト㯠string (optional - defaults to false ): "
"\"forces\" Hibernate to specify the allowed discriminator values, even when "
"retrieving all instances of the root class."
msgstr ""
"<literal>force (オプション - デフォルト㯠false (optional - defaults to true ): "
"set this to <literal>false if your discriminator column is also "
"part of a mapped composite identifier. It tells Hibernate not to include the "
"column in SQL <literal>INSERTs."
msgstr ""
"<literal>insert (オプション - デフォルト㯠true ã¨è¨å®šã—ã¦ãã ã•ã„。 (Hibernate ã« SQL ã® "
"<literal>INSERT 内ã®ã‚«ãƒ©ãƒ ã‚’å«ã¾ã›ãªã„よã†ä¼ãˆã¾ã™ã€‚)"
#. Tag: para
#: basic_mapping.xml:2631
#, no-c-format
msgid ""
"<literal>formula (optional): an arbitrary SQL expression that is "
"executed when a type has to be evaluated. It allows content-based "
"discrimination."
msgstr ""
"<literal>formula (オプション) åž‹ãŒè©•ä¾¡ã•ã‚Œã‚‹ã¨ãã«å®Ÿè¡Œã•ã‚Œã‚‹ä»»æ„ã® "
"SQL å¼ã€‚コンテンツベースã®è˜åˆ¥ã‚’å¯èƒ½ã«ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2638
#, no-c-format
msgid ""
"Actual values of the discriminator column are specified by the "
"<literal>discriminator-value attribute of the <"
"class></literal> and <subclass> elements."
msgstr ""
"è˜åˆ¥ã‚«ãƒ©ãƒ ã®å®Ÿéš›ã®å€¤ã¯ã€ <literal><class> 㨠<"
"subclass></literal> è¦ç´ ã® discriminator-value 属性ã§æŒ‡"
"定ã•ã‚Œã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2643
#, no-c-format
msgid ""
"The <literal>formula 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 属性を使ã†ã¨ã€è¡Œã®åž‹ã‚’評価ã™ã‚‹ãŸã‚ã«ä»»æ„ã® SQL å¼"
"を宣言ã§ãã¾ã™:"
#. Tag: programlisting
#: basic_mapping.xml:2647
#, fuzzy, no-c-format
msgid ""
"<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\"/>"
#. Tag: title
#: basic_mapping.xml:2652
#, fuzzy, no-c-format
msgid "Joined subclass strategy"
msgstr "joined-subclass"
#. Tag: para
#: basic_mapping.xml:2654
#, fuzzy, 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. A discriminator column is not required for "
"this mapping strategy. Each subclass must, however, declare a table column "
"holding the object identifier. The primary key of this table is also a "
"foreign key to the superclass table and described by the "
"<classname>@PrimaryKeyJoinColumns or the <key> è¦"
"ç´ ã‚’ä½¿ç”¨ã—ã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:2664
#, no-c-format
msgid ""
"@Entity @Table(name=\"CATS\")\n"
"@Inheritance(strategy=InheritanceType.JOINED)\n"
"public class Cat implements Serializable { \n"
" @Id @GeneratedValue(generator=\"cat-uuid\") \n"
" @GenericGenerator(name=\"cat-uuid\", strategy=\"uuid\")\n"
" String getId() { return id; }\n"
"\n"
" ...\n"
"}\n"
"\n"
"@Entity @Table(name=\"DOMESTIC_CATS\")\n"
"@PrimaryKeyJoinColumn(name=\"CAT\")\n"
"public class DomesticCat extends Cat { \n"
" public String getName() { return name; }\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2667
#, no-c-format
msgid ""
"The table name still defaults to the non qualified class name. Also if "
"<classname>@PrimaryKeyJoinColumn is not set, the primary key / "
"foreign key columns are assumed to have the same names as the primary key "
"columns of the primary table of the superclass."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2674
#, fuzzy, no-c-format
msgid ""
"In hbm.xml, use the <literal><joined-subclass> element. For "
"example:"
msgstr "<literal>class è¦ç´ を使ã£ã¦ã€æ°¸ç¶šã‚¯ãƒ©ã‚¹ã‚’宣言ã§ãã¾ã™ï¼š"
#. Tag: programlisting
#: basic_mapping.xml:2688
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:2697 basic_mapping.xml:2761
#, no-c-format
msgid "<literal>table: the name of the subclass table."
msgstr "<literal>table :サブクラステーブルã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:2702 basic_mapping.xml:2766
#, no-c-format
msgid ""
"<literal>proxy (optional): specifies a class or interface to use "
"for lazy initializing proxies."
msgstr ""
"<literal>proxy (オプション): é…延åˆæœŸåŒ–プãƒã‚ã‚·ã«ä½¿ç”¨ã™ã‚‹ã‚¯ãƒ©ã‚¹ã‚„イ"
"ンターフェースを指定ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2707 basic_mapping.xml:2771
#, no-c-format
msgid ""
"<literal>lazy (optional, defaults to true ): "
"setting <literal>lazy=\"false\" disables the use of lazy fetching."
msgstr ""
"<literal>lazy (オプションã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã¯ true ): "
"<literal>lazy=\"false\" ã¨ã™ã‚‹ã¨ã€é…延フェッãƒãŒä½¿ç”¨ã§ãã¾ã›ã‚“。"
#. Tag: para
#: basic_mapping.xml:2715
#, no-c-format
msgid ""
"Use the <literal><key> element to declare the primary key / "
"foreign key column. The mapping at the start of the chapter would then be re-"
"written as:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2719
#, fuzzy, no-c-format
msgid ""
"<?xml version=\"1.0\"?>\n"
"<!DOCTYPE hibernate-mapping PUBLIC\n"
" \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
" \"http://www.hibernate.org/dtd/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>"
#. Tag: title
#: basic_mapping.xml:2726
#, no-c-format
msgid "Table per class strategy"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2728
#, fuzzy, 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 as a separate entity root. "
"However, if you wish use polymorphic associations (e.g. an association to "
"the superclass of your hierarchy), you need to use the union subclass "
"mapping."
msgstr ""
"3ã¤ç›®ã®é¸æŠžè‚¢ã¯ã€ç¶™æ‰¿éšŽå±¤ã®å…·è±¡ã‚¯ãƒ©ã‚¹ã®ã¿ã‚’テーブルã«ãƒžãƒƒãƒ”ングã™ã‚‹ã“ã¨ã§ã™ "
"(the table-per-concrete-class 戦略)。ãã‚Œãžã‚Œã®ãƒ†ãƒ¼ãƒ–ルã¯ç¶™æ‰¿ã®çŠ¶æ…‹ã‚’å«ã‚ã™ã¹"
"ã¦ã®ã‚¯ãƒ©ã‚¹ã®æ°¸ç¶šçŠ¶æ…‹ã‚’定義ã—ã¾ã™ã€‚ Hibernate ã§ã¯ãã®æ§˜ãªç¶™æ‰¿éšŽå±¤ãŒå¿…ãšã—ã‚‚å¿…"
"è¦ã§ã¯ã‚ã‚Šã¾ã›ã‚“。å˜ç´”ã«ãã‚Œãžã‚Œã®ã‚¯ãƒ©ã‚¹ã‚’ã€åˆ¥ã€…ã® <literal><class>."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2794
#, no-c-format
msgid ""
"@MappedSuperclass\n"
"public class BaseEntity {\n"
" @Basic\n"
" @Temporal(TemporalType.TIMESTAMP)\n"
" public Date getLastUpdate() { ... }\n"
" public String getLastUpdater() { ... }\n"
" ...\n"
"}\n"
"\n"
"@Entity class Order extends BaseEntity {\n"
" @Id public Integer getId() { ... }\n"
" ...\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2796
#, no-c-format
msgid ""
"In database, this hierarchy will be represented as an <literal>Orderid, lastUpdatelastUpdater columns. The embedded superclass "
"property mappings are copied into their entity subclasses. Remember that the "
"embeddable superclass is not the root of the hierarchy though."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2804
#, no-c-format
msgid ""
"Properties from superclasses not mapped as <literal>@MappedSuperclass annotation."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2814
#, no-c-format
msgid ""
"The same notion can be applied to <literal>@Embeddable objects to "
"persist properties from their superclasses. You also need to use "
"<literal>@MappedSuperclass to do that (this should not be "
"considered as a standard EJB3 feature though)"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2822
#, no-c-format
msgid ""
"It is allowed to mark a class as <literal>@MappedSuperclass in the "
"middle of the mapped inheritance hierarchy."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2828
#, no-c-format
msgid ""
"Any class in the hierarchy non annotated with <literal>@MappedSuperclass@Entity will be ignored."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2833
#, no-c-format
msgid ""
"You can override columns defined in entity superclasses at the root entity "
"level using the <literal>@AttributeOverride annotation."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2837
#, no-c-format
msgid ""
"@MappedSuperclass\n"
"public class FlyingObject implements Serializable {\n"
"\n"
" public int getAltitude() {\n"
" return altitude;\n"
" }\n"
"\n"
" @Transient\n"
" public int getMetricAltitude() {\n"
" return metricAltitude;\n"
" }\n"
"\n"
" @ManyToOne\n"
" public PropulsionType getPropulsion() {\n"
" return metricAltitude;\n"
" }\n"
" ...\n"
"}\n"
"\n"
"@Entity\n"
"@AttributeOverride( name=\"altitude\", column = @Column(name=\"fld_altitude"
"\") )\n"
"@AssociationOverride( \n"
" name=\"propulsion\", \n"
" joinColumns = @JoinColumn(name=\"fld_propulsion_fk\") \n"
")\n"
"public class Plane extends FlyingObject {\n"
" ...\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2839
#, no-c-format
msgid ""
"The <literal>altitude property will be persisted in an "
"<literal>fld_altitude column of table Plane and "
"the propulsion association will be materialized in a "
"<literal>fld_propulsion_fk foreign key column."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2845
#, no-c-format
msgid ""
"You can define <literal>@AttributeOverride(s) and "
"<literal>@AssociationOverride(s) on @Entity "
"classes, <literal>@MappedSuperclass classes and properties "
"pointing to an <literal>@Embeddable object."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2851
#, no-c-format
msgid ""
"In hbm.xml, simply map the properties of the superclass in the <literal><"
"class></literal> element of the entity that needs to inherit them."
msgstr ""
#. Tag: title
#: basic_mapping.xml:2857
#, no-c-format
msgid "Mapping one entity to several tables"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2859
#, no-c-format
msgid ""
"While not recommended for a fresh schema, some legacy databases force your "
"to map a single entity on several tables."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2862
#, no-c-format
msgid ""
"Using the <literal>@SecondaryTable or @SecondaryTables parameter of "
"<literal>@Column or @JoinColumn ."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:2868
#, no-c-format
msgid ""
"@Entity\n"
"@Table(name=\"MainCat\")\n"
"@SecondaryTables({\n"
" @SecondaryTable(name=\"Cat1\", pkJoinColumns={\n"
" @PrimaryKeyJoinColumn(name=\"cat_id\", referencedColumnName=\"id\")\n"
" ),\n"
" @SecondaryTable(name=\"Cat2\", uniqueConstraints={@UniqueConstraint"
"(columnNames={\"storyPart2\"})})\n"
"})\n"
"public class Cat implements Serializable {\n"
"\n"
" private Integer id;\n"
" private String name;\n"
" private String storyPart1;\n"
" private String storyPart2;\n"
"\n"
" @Id @GeneratedValue\n"
" public Integer getId() {\n"
" return id;\n"
" }\n"
"\n"
" public String getName() {\n"
" return name;\n"
" }\n"
" \n"
" @Column(table=\"Cat1\")\n"
" public String getStoryPart1() {\n"
" return storyPart1;\n"
" }\n"
"\n"
" @Column(table=\"Cat2\")\n"
" public String getStoryPart2() {\n"
" return storyPart2;\n"
" }\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:2870
#, no-c-format
msgid ""
"In this example, <literal>name will be in MainCatstoryPart1 will be in Cat1 "
"and <literal>storyPart2 will be in Cat2 . "
"<literal>Cat1 will be joined to MainCat using "
"the <literal>cat_id as a foreign key, and Cat2 "
"using <literal>id (ie the same column name, the MainCatstoryPart2: If set to JOIN, the default, Hibernate will use an "
"inner join to retrieve a secondary table defined by a class or its "
"superclasses and an outer join for a secondary table defined by a subclass. "
"If set to <classname>SELECT then Hibernate will use a sequential "
"select for a secondary table defined on a subclass, which will be issued "
"only if a row turns out to represent an instance of the subclass. Inner "
"joins will still be used to retrieve a secondary defined by the class and "
"its superclasses."
msgstr ""
"<literal>fetch (オプション - デフォルト㯠joinjoin ã‚’è¨å®šã—ãŸå ´åˆã€ Hibernate ã¯ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆ"
"ã§ã€ã‚¯ãƒ©ã‚¹ã‚„スーパークラスã§å®šç¾©ã•ã‚ŒãŸ <literal><join> を検索"
"ã™ã‚‹ã®ã«å†…部çµåˆã‚’使ã„ã€ã‚µãƒ–クラスã§å®šç¾©ã•ã‚ŒãŸ <literal><join>select ã‚’è¨å®š"
"ã—ãŸå ´åˆã«ã¯ã€ Hibernate ã¯ã‚µãƒ–クラスã§å®šç¾©ã•ã‚ŒãŸ <literal><join> を検索ã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã—ã¾"
"ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2898
#, fuzzy, no-c-format
msgid ""
"<literal>inverse: If true, Hibernate will not try to insert or "
"update the properties defined by this join. Default to false."
msgstr ""
"<literal>inverse (オプション - デフォルト㯠false: If enabled (the default), Hibernate will insert "
"a row only if the properties defined by this join are non-null and will "
"always use an outer join to retrieve the properties."
msgstr ""
"<literal>optional (オプション - デフォルト㯠false: defines the Foreign Key name of a secondary "
"table pointing back to the primary table."
msgstr ""
#. Tag: para
#: basic_mapping.xml:2916
#, no-c-format
msgid ""
"Make sure to use the secondary table name in the <methodname>appliesto element."
msgstr ""
"例ãˆã°ã€ã‚‚ã—以下ã®ã‚ˆã†ãª <literal><properties> マッピングãŒ"
"ã‚ã£ãŸå ´åˆï¼š"
#. Tag: programlisting
#: basic_mapping.xml:2939
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:2943
#, no-c-format
msgid "<literal>table: the name of the joined table."
msgstr "<literal>table :çµåˆã—ãŸãƒ†ãƒ¼ãƒ–ルã®åå‰"
#. Tag: para
#: basic_mapping.xml:2960
#, no-c-format
msgid ""
"<literal>fetch (optional - defaults to join ): "
"if set to <literal>join, the default, Hibernate will use an inner "
"join to retrieve a <literal><join> defined by a class or its "
"superclasses. It will use an outer join for a <literal><join>select then "
"Hibernate will use a sequential select for a <literal><join> "
"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> defined by the class and its superclasses."
msgstr ""
"<literal>fetch (オプション - デフォルト㯠joinjoin ã‚’è¨å®šã—ãŸå ´åˆã€ Hibernate ã¯ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆ"
"ã§ã€ã‚¯ãƒ©ã‚¹ã‚„スーパークラスã§å®šç¾©ã•ã‚ŒãŸ <literal><join> を検索"
"ã™ã‚‹ã®ã«å†…部çµåˆã‚’使ã„ã€ã‚µãƒ–クラスã§å®šç¾©ã•ã‚ŒãŸ <literal><join>select ã‚’è¨å®š"
"ã—ãŸå ´åˆã«ã¯ã€ Hibernate ã¯ã‚µãƒ–クラスã§å®šç¾©ã•ã‚ŒãŸ <literal><join> を検索ã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã—ã¾"
"ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:2975
#, no-c-format
msgid ""
"<literal>inverse (optional - defaults to false (オプション - デフォルト㯠false (optional - defaults to false (オプション - デフォルト㯠false or "
"<classname>@OnetoOne."
msgstr ""
#. Tag: para
#: basic_mapping.xml:3014
#, no-c-format
msgid ""
"<literal>@ManyToOne and @OneToOne have a "
"parameter named <literal>targetEntity which describes the target "
"entity name. You usually don't need this parameter since the default value "
"(the type of the property that stores the association) is good in almost all "
"cases. However this is useful when you want to use interfaces as the return "
"type instead of the regular entity."
msgstr ""
#. Tag: para
#: basic_mapping.xml:3021
#, no-c-format
msgid ""
"Setting a value of the <literal>cascade attribute to any "
"meaningful value other than nothing will propagate certain operations to the "
"associated object. The meaningful values are divided into three categories."
msgstr ""
#. Tag: para
#: basic_mapping.xml:3028
#, no-c-format
msgid ""
"basic operations, which include: <literal>persist, merge, delete, save-"
"update, evict, replicate, lock and refresh</literal>;"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3034
#, fuzzy, no-c-format
msgid ""
"special values: <literal>delete-orphan or all ;"
msgstr ""
"関連㌠<literal>class ã®ä»£ã‚ã‚Šã« entity-name ã‚’"
"使ã£ã¦ã€ã©ã®ã‚ˆã†ã«æŒ‡å®šã•ã‚Œã‚‹ã®ã‹ã«æ³¨ç›®ã—ã¦ãã ã•ã„。"
#. Tag: para
#: basic_mapping.xml:3039
#, no-c-format
msgid ""
"comma-separated combinations of operation names: <literal>cascade=\"persist,"
"merge,evict\"</literal> or cascade=\"all,delete-orphan\" . "
"See <xref linkend=\"objectstate-transitive\"/> for a full explanation. Note "
"that single valued many-to-one associations do not support orphan delete."
msgstr ""
#. Tag: para
#: basic_mapping.xml:3048
#, no-c-format
msgid ""
"By default, single point associations are eagerly fetched in JPA 2. You can "
"mark it as lazily fetched by using <classname>@ManyToOne(fetch=FetchType."
"LAZY) </classname>in which case Hibernate will proxy the association and "
"load it when the state of the associated entity is reached. You can force "
"Hibernate not to use a proxy by using <classname>@LazyToOne(NO_PROXY), or a SQL JOIN is used "
"for <literal>EAGER associations. You can however adjust the "
"fetching strategy, ie how data is fetched by using <literal>@FetchFetchMode can be SELECT (a "
"select is triggered when the association needs to be loaded) or "
"<literal>JOIN (use a SQL JOIN to load the association while "
"loading the owner entity). <literal>JOIN overrides any lazy "
"attribute (an association loaded through a <literal>JOIN strategy "
"cannot be lazy)."
msgstr ""
#. Tag: title
#: basic_mapping.xml:3070
#, fuzzy, no-c-format
msgid "Using a foreign key or an association table"
msgstr "ユニーク外部ã‚ー関連"
#. Tag: para
#: basic_mapping.xml:3072
#, fuzzy, no-c-format
msgid "An ordinary association to another persistent class is declared using a"
msgstr ""
"ä»–ã®æ°¸ç¶šã‚¯ãƒ©ã‚¹ã¸ã®ä¸€å¯¾ä¸€é–¢é€£ã¯ã€<literal>one-to-one è¦ç´ ã§å®šç¾©ã—ã¾"
"ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3077
#, no-c-format
msgid ""
"<classname>@ManyToOne if several entities can point to the the "
"target entity"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3082
#, no-c-format
msgid ""
"<classname>@OneToOne if only a single entity can point to the "
"the target entity"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3087
#, no-c-format
msgid ""
"and a foreign key in one table is referencing the primary key column(s) of "
"the target table."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3090
#, no-c-format
msgid ""
"@Entity\n"
"public class Flight implements Serializable {\n"
" @ManyToOne( cascade = {CascadeType.PERSIST, CascadeType.MERGE} )\n"
" @JoinColumn(name=\"COMP_ID\")\n"
" public Company getCompany() {\n"
" return company;\n"
" }\n"
" ...\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3092
#, no-c-format
msgid ""
"The <literal>@JoinColumn attribute is optional, the default value"
"(s) is the concatenation of the name of the relationship in the owner side, "
"<keycap>_ (underscore), and the name of the primary key column in "
"the owned side. In this example <literal>company_id because the "
"property name is <literal>company and the column id of Company is "
"<literal>id."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3100
#, no-c-format
msgid ""
"@Entity\n"
"public class Flight implements Serializable {\n"
" @ManyToOne( cascade = {CascadeType.PERSIST, CascadeType.MERGE}, "
"targetEntity=CompanyImpl.class )\n"
" @JoinColumn(name=\"COMP_ID\")\n"
" public Company getCompany() {\n"
" return company;\n"
" }\n"
" ...\n"
"}\n"
"\n"
"public interface Company {\n"
" ...\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3102
#, no-c-format
msgid ""
"You can also map a to one association through an association table. This "
"association table described by the <literal>@JoinTable annotation "
"will contains a foreign key referencing back the entity table (through "
"<literal>@JoinTable.joinColumns) and a a foreign key referencing "
"the target entity table (through <literal>@JoinTable.inverseJoinColumns / "
"<classname>@JoinColumnOrformulas annotations (just like you can "
"use a SQL fragment to simulate a property column via the "
"<classname>@Formula annotation)."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3119
#, no-c-format
msgid ""
"@Entity\n"
"public class Ticket implements Serializable {\n"
" @ManyToOne\n"
" @JoinColumnOrFormula(formula=\"(firstname + ' ' + lastname)\")\n"
" public Person getOwner() {\n"
" return person;\n"
" }\n"
" ...\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3122
#, no-c-format
msgid ""
"You can mark an association as mandatory by using the "
"<literal>optional=false attribute. We recommend to use Bean "
"Validation's <classname>@NotNull annotation as a better "
"alternative however. As a consequence, the foreign key column(s) will be "
"marked as not nullable (if possible)."
msgstr ""
#. Tag: para
#: basic_mapping.xml:3128
#, no-c-format
msgid ""
"When Hibernate cannot resolve the association because the expected "
"associated element is not in database (wrong id on the association column), "
"an exception is raised. This might be inconvenient for legacy and badly "
"maintained schemas. You can ask Hibernate to ignore such elements instead of "
"raising an exception using the <literal>@NotFound annotation."
msgstr ""
#. Tag: title
#: basic_mapping.xml:3136
#, no-c-format
msgid "@NotFound annotation"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3138
#, no-c-format
msgid ""
"@Entity\n"
"public class Child {\n"
" ...\n"
" @ManyToOne\n"
" @NotFound(action=NotFoundAction.IGNORE)\n"
" public Parent getParent() { ... }\n"
" ...\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3141
#, no-c-format
msgid ""
"Sometimes you want to delegate to your database the deletion of cascade when "
"a given entity is deleted. In this case Hibernate generates a cascade delete "
"constraint at the database level."
msgstr ""
#. Tag: title
#: basic_mapping.xml:3146
#, no-c-format
msgid "@OnDelete annotation"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3148
#, no-c-format
msgid ""
"@Entity\n"
"public class Child {\n"
" ...\n"
" @ManyToOne\n"
" @OnDelete(action=OnDeleteAction.CASCADE)\n"
" public Parent getParent() { ... }\n"
" ...\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3151
#, no-c-format
msgid ""
"Foreign key constraints, while generated by Hibernate, have a fairly "
"unreadable name. You can override the constraint name using "
"<literal>@ForeignKey."
msgstr ""
#. Tag: title
#: basic_mapping.xml:3156
#, fuzzy, no-c-format
msgid "@ForeignKey annotation"
msgstr "ユニーク外部ã‚ー関連"
#. Tag: programlisting
#: basic_mapping.xml:3158
#, no-c-format
msgid ""
"@Entity\n"
"public class Child {\n"
" ...\n"
" @ManyToOne\n"
" @ForeignKey(name=\"FK_PARENT\")\n"
" public Parent getParent() { ... }\n"
" ...\n"
"}\n"
"\n"
"alter table Child add constraint FK_PARENT foreign key (parent_id) "
"references Parent"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3161
#, no-c-format
msgid ""
"Sometimes, you want to link one entity to an other not by the target entity "
"primary key but by a different unique key. You can achieve that by "
"referencing the unique key column(s) in <methodname>@JoinColumn."
"referenceColumnName</methodname>."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3166 basic_mapping.xml:3718
#, no-c-format
msgid ""
"@Entity\n"
"class Person {\n"
" @Id Integer personNumber;\n"
" String firstName;\n"
" @Column(name=\"I\")\n"
" String initial;\n"
" String lastName;\n"
"}\n"
"\n"
"@Entity\n"
"class Home {\n"
" @ManyToOne\n"
" @JoinColumns({\n"
" @JoinColumn(name=\"first_name\", referencedColumnName=\"firstName\"),\n"
" @JoinColumn(name=\"init\", referencedColumnName=\"I\"),\n"
" @JoinColumn(name=\"last_name\", referencedColumnName=\"lastName\"),\n"
" })\n"
" Person owner\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3168
#, no-c-format
msgid ""
"This is not encouraged however and should be reserved to legacy mappings."
msgstr ""
#. Tag: para
#: basic_mapping.xml:3171
#, no-c-format
msgid ""
"In hbm.xml, mapping an association is similar. The main difference is that a "
"<classname>@OneToOne is mapped as <many-to-one "
"unique=\"true\"/></literal>, let's dive into the subject."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3213
#, fuzzy, no-c-format
msgid ""
"<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"
"/>"
#. Tag: para
#: basic_mapping.xml:3221 basic_mapping.xml:3904
#, no-c-format
msgid ""
"<literal>column (optional): the name of the foreign key column. "
"This can also be specified by nested <literal><column> "
"element(s)."
msgstr ""
"<literal>column (オプション):外部ã‚ーカラムã®åå‰ã€‚ãƒã‚¹ãƒˆã—㟠"
"<literal><column> カラムã«ã‚ˆã£ã¦ã‚‚指定ã•ã‚Œã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3227 basic_mapping.xml:3421
#, no-c-format
msgid ""
"<literal>class (optional - defaults to the property type "
"determined by reflection): the name of the associated class."
msgstr ""
"<literal>class(オプション - デフォルトã¯ãƒªãƒ•ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã«ã‚ˆã‚Šæ±ºå®šã•"
"れるプãƒãƒ‘ティã®åž‹ï¼‰ï¼š 関連クラスã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:3233 basic_mapping.xml:3427
#, no-c-format
msgid ""
"<literal>cascade (optional): specifies which operations should be "
"cascaded from the parent object to the associated object."
msgstr ""
"<literal>cascade(オプション): 親オブジェクトã‹ã‚‰é–¢é€£ã‚ªãƒ–ジェクト"
"ã¸ã€ã©ã®æ“作をカスケードã™ã‚‹ã‹ã‚’指定ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3239 basic_mapping.xml:3443
#, no-c-format
msgid ""
"<literal>fetch (optional - defaults to select ): "
"chooses between outer-join fetching or sequential select fetching."
msgstr ""
"<literal>fetch(オプション - デフォルト㯠select (optional - defaults to true and/or INSERT statements. "
"Setting both to <literal>false 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 ""
"<literal>update, insert (オプション - デフォルト㯠trueUPDATE ã¾ãŸ"
"㯠<literal>INSERT æ–‡ã«å«ã¾ã‚Œã‚‹ã“ã¨ã‚’指定ã—ã¾ã™ã€‚両方ã¨ã‚‚ "
"<literal>false ã«è¨å®šã™ã‚‹ã¨ã€ãã®å€¤ãŒåŒã˜ã‚«ãƒ©ãƒ ã«ãƒžãƒƒãƒ”ングã•ã‚ŒãŸä»–"
"ã®ãƒ—ãƒãƒ‘ティやトリガや他ã®ã‚¢ãƒ—リケーションã«ã‚ˆã£ã¦åˆæœŸåŒ–ã•ã‚ŒãŸç´”粋ãªã€Œå°Žå‡ºã€"
"プãƒãƒ‘ティãŒå¯èƒ½ã«ãªã‚Šã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3255
#, no-c-format
msgid ""
"<literal>property-ref (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: (オプション) ã“ã®å¤–部ã‚ーã«åŠ ã‚ã‚‹ã€é–¢é€£ã‚¯ãƒ©"
"スã®ãƒ—ãƒãƒ‘ティã®åå‰ã€‚指定ã•ã‚Œã¦ã„ãªã„å ´åˆã¯ã€é–¢é€£ã‚¯ãƒ©ã‚¹ã®ä¸»ã‚ーãŒä½¿ç”¨ã•ã‚Œã¾"
"ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3268
#, no-c-format
msgid ""
"<literal>unique (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, you can make the association multiplicity "
"one-to-one."
msgstr ""
"<literal>unique(オプション): 外部ã‚ーカラムã«å¯¾ã—ã¦ãƒ¦ãƒ‹ãƒ¼ã‚¯åˆ¶ç´„"
"ã‚’ã¤ã‘㟠DDL ã®ç”Ÿæˆã‚’å¯èƒ½ã«ã—ã¾ã™ã€‚ã¾ãŸã€ <literal>property-ref ã®"
"ターゲットã«ã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚ã“ã‚Œã«ã‚ˆã‚Šé–¢é€£ã®å¤šé‡åº¦ã‚’効果的ã«ä¸€å¯¾ä¸€ã«ã—ã¾"
"ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3276
#, no-c-format
msgid ""
"<literal>not-null (optional): enables the DDL generation of a "
"nullability constraint for the foreign key columns."
msgstr ""
"<literal>not-null (オプション): 外部ã‚ーカラムã«å¯¾ã—ã¦ã€ null 値を"
"許å¯ã™ã‚‹ DDL ã®ç”Ÿæˆã‚’å¯èƒ½ã«ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3290
#, no-c-format
msgid ""
"<literal>lazy (optional - defaults to proxy ): "
"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\" specifies that the "
"association will always be eagerly fetched."
msgstr ""
"<literal>lazy (オプション - デフォルト㯠proxy ã¯ã€ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹å¤‰æ•°ã«æœ€åˆã«ã‚¢ã‚¯ã‚»ã‚¹ã—ãŸ"
"ã¨ãã«ã€ãƒ—ãƒãƒ‘ティをé…延フェッãƒã™ã‚‹ã‚ˆã†æŒ‡å®šã—ã¾ã™ (ビルド時ã«ãƒã‚¤ãƒˆã‚³ãƒ¼ãƒ‰å®Ÿ"
"装ãŒå¿…è¦ã«ãªã‚Šã¾ã™)。 <literal>lazy=\"false\" ã¯é–¢é€£ã‚’常ã«å³æ™‚ã«"
"フェッãƒã™ã‚‹ã‚ˆã†æŒ‡å®šã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3300
#, no-c-format
msgid ""
"<literal>not-found (optional - defaults to exception will treat a missing row as a null "
"association."
msgstr ""
"<literal>not-found (オプション - デフォルト㯠exception を指定ã™ã‚‹ã¨ã€è¡ŒãŒãªã„ã“ã¨ã‚’関連ãŒãªã„ã‚‚ã®ã¨ã—ã¦æ‰±"
"ã„ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3308 basic_mapping.xml:3484
#, no-c-format
msgid ""
"<literal>entity-name (optional): the entity name of the associated "
"class."
msgstr ""
"<literal>entity-name (オプション):関連ã—ãŸã‚¯ãƒ©ã‚¹ã®ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£å。"
#. Tag: para
#: basic_mapping.xml:3313
#, no-c-format
msgid ""
"<literal>formula (optional): an SQL expression that defines the "
"value for a <emphasis>computed foreign key."
msgstr ""
"<literal>formula (オプション): 計算ã•ã‚ŒãŸ 外"
"部ã‚ーã«å¯¾ã—ã¦å€¤ã‚’定義ã™ã‚‹ SQL å¼"
#. Tag: para
#: basic_mapping.xml:3320
#, fuzzy, no-c-format
msgid ""
"Setting a value of the <literal>cascade attribute to any "
"meaningful value other than <literal>none 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; and third,"
"<literal>all comma-separated combinations of operation names: "
"<literal>cascade=\"persist,merge,evict\" or cascade=\"all,"
"delete-orphan\"</literal>. See "
"for a full explanation. Note that single valued, many-to-one and one-to-one, "
"associations do not support orphan delete."
msgstr ""
"<literal>cascade 属性㫠none 以外ã®æ„味ã®ã‚る値"
"ã‚’è¨å®šã™ã‚‹ã¨ã€é–¢é€£ã‚ªãƒ–ジェクトã¸ã‚ã‚‹æ“作ãŒä¼æ’ã™ã‚‹ã“ã¨ã«ãªã‚Šã¾ã™ã€‚æ„味ã®ã‚ã‚‹"
"値ã¨ã¯ Hibernate ã®åŸºæœ¬æ“作ã®åå‰ã®ã“ã¨ã§ã€ <literal>delete-orphan "
"㨠<literal>all ã€æ“作åをカンマã§åŒºåˆ‡ã£ãŸçµ„ã¿åˆã‚㛠(例ãˆã° "
"<literal>cascade=\"persist,merge,evict\" ã‚„ cascade=\"all,"
"delete-orphan\"</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:3334
#, no-c-format
msgid ""
"Here is an example of a typical <literal>many-to-one declaration:"
msgstr ""
"典型的㪠<literal>many-to-one 宣言ã¯æ¬¡ã®ã‚ˆã†ã«ã‚·ãƒ³ãƒ—ルã§ã™ã€‚:"
#. Tag: programlisting
#: basic_mapping.xml:3337
#, fuzzy, no-c-format
msgid ""
"<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID\"/>"
msgstr ""
"<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID\"/>"
#. Tag: para
#: basic_mapping.xml:3339
#, no-c-format
msgid ""
"The <literal>property-ref 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 "
"class had a unique serial number that is not the primary key. The "
"<literal>unique attribute controls Hibernate's DDL generation with "
"the SchemaExport tool."
msgstr ""
"<literal>property-ref 属性ã¯ã€å¤–部ã‚ーãŒé–¢é€£ä»˜ã‘られãŸãƒ†ãƒ¼ãƒ–ルã®ã€"
"主ã‚ーã§ãªã„ユニークã‚ーをå‚ç…§ã—ã¦ã„るレガシーデータをマップã™ã‚‹ãŸã‚ã«ã ã‘使"
"ã†ã¹ãã§ã™ã€‚ã“ã‚Œã¯é†œã„リレーショナルモデルã§ã™ã€‚例ãˆã° <literal>Product 属性㯠SchemaExport ツールを使ã£"
"㟠Hibernate ã® DDL 生æˆã‚’制御ã—ã¾ã™ã€‚)"
#. Tag: programlisting
#: basic_mapping.xml:3347
#, fuzzy, no-c-format
msgid ""
"<property name=\"serialNumber\" unique=\"true\" type=\"string\" column="
"\"SERIAL_NUMBER\"/>"
msgstr ""
"<property name=\"serialNumber\" unique=\"true\" type=\"string\" column="
"\"SERIAL_NUMBER\"/>"
#. Tag: para
#: basic_mapping.xml:3349
#, no-c-format
msgid "Then the mapping for <literal>OrderItem might use:"
msgstr ""
"以下ã®ã‚ˆã†ã« <literal>OrderItem ã«å¯¾ã—ã¦ãƒžãƒƒãƒ”ングを使ãˆã¾ã™ï¼š"
#. Tag: programlisting
#: basic_mapping.xml:3352
#, fuzzy, no-c-format
msgid ""
"<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\"/>"
#. Tag: para
#: basic_mapping.xml:3354
#, no-c-format
msgid "This is not encouraged, however."
msgstr "ã—ã‹ã—ã€ã“ã‚Œã¯æ±ºã—ã¦æŽ¨å¥¨ã§ãã¾ã›ã‚“。"
#. Tag: para
#: basic_mapping.xml:3356
#, 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> è¦ç´ 内ã§ã€å‚ç…§ã™ã‚‹ãƒ—ãƒãƒ‘"
"ティをマッピングã™ã‚‹ã¹ãã§ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3360
#, 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:3363
#, fuzzy, no-c-format
msgid ""
"<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\"/>"
#. Tag: title
#: basic_mapping.xml:3367
#, no-c-format
msgid "Sharing the primary key with the associated entity"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3369
#, no-c-format
msgid ""
"The second approach is to ensure an entity and its associated entity share "
"the same primary key. In this case the primary key column is also a foreign "
"key and there is no extra column. These associations are always one to one."
msgstr ""
#. Tag: title
#: basic_mapping.xml:3375
#, fuzzy, no-c-format
msgid "One to One association"
msgstr "ユニーク外部ã‚ー関連"
#. Tag: programlisting
#: basic_mapping.xml:3377
#, no-c-format
msgid ""
"@Entity\n"
"public class Body {\n"
" @Id\n"
" public Long getId() { return id; }\n"
"\n"
" @OneToOne(cascade = CascadeType.ALL)\n"
" @MapsId\n"
" public Heart getHeart() {\n"
" return heart;\n"
" }\n"
" ...\n"
"} \n"
"\n"
"@Entity\n"
"public class Heart {\n"
" @Id\n"
" public Long getId() { ...}\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3381
#, no-c-format
msgid ""
"Many people got confused by these primary key based one to one associations. "
"They can only be lazily loaded if Hibernate knows that the other side of the "
"association is always present. To indicate to Hibernate that it is the case, "
"use <classname>@OneToOne(optional=false)."
msgstr ""
#. Tag: para
#: basic_mapping.xml:3388
#, no-c-format
msgid "In hbm.xml, use the following mapping."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3413
#, fuzzy, no-c-format
msgid ""
"<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"
"/>"
#. Tag: para
#: basic_mapping.xml:3433
#, no-c-format
msgid ""
"<literal>constrained (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 delete() are cascaded, and determines "
"whether the association can be proxied. It is also used by the schema export "
"tool."
msgstr ""
"<literal>constrained(オプション): マッピングã•ã‚ŒãŸãƒ†ãƒ¼ãƒ–ルã®ä¸»"
"ã‚ーã«å¯¾ã™ã‚‹å¤–部ã‚ー制約ãŒã€é–¢é€£ã‚¯ãƒ©ã‚¹ã®ãƒ†ãƒ¼ãƒ–ルをå‚ç…§ã™ã‚‹ã“ã¨ã‚’指定ã—ã¾ã™ã€‚"
"ã“ã®ã‚ªãƒ—ション㯠<literal>save() 㨠delete() ãŒ"
"カスケードã•ã‚Œã‚‹é †åºã«å½±éŸ¿ã—ã€ãã—ã¦é–¢é€£ãŒãƒ—ãƒã‚ã‚·ã•ã‚Œã‚‹ã‹ã©ã†ã‹ã«ã‚‚影響ã—ã¾"
"㙠(ãã—ã¦ã‚¹ã‚ーマエクスãƒãƒ¼ãƒˆãƒ„ールã«ã‚‚使ã‚ã‚Œã¾ã™ï¼‰ã€‚"
#. Tag: para
#: basic_mapping.xml:3449
#, no-c-format
msgid ""
"<literal>property-ref (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(オプション): ã“ã®ã‚¯ãƒ©ã‚¹ã®ä¸»ã‚ーã«çµåˆã•ã‚Œ"
"ãŸé–¢é€£ã‚¯ãƒ©ã‚¹ã®ãƒ—ãƒãƒ‘ティå。指定ã•ã‚Œãªã‘ã‚Œã°ã€é–¢é€£ã‚¯ãƒ©ã‚¹ã®ä¸»ã‚ーãŒä½¿ã‚ã‚Œã¾"
"ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3462
#, no-c-format
msgid ""
"<literal>formula (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 for an "
"example."
msgstr ""
"<literal>formula (オプション): ã»ã¨ã‚“ã©ã™ã¹ã¦ã®ä¸€å¯¾ä¸€é–¢é€£ã¯ã‚ªãƒ¼ãƒŠãƒ¼"
"ã®ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã®ä¸»ã‚ーã¸ã¨ãƒžãƒƒãƒ”ングã•ã‚Œã¾ã™ã€‚ã“れ以外ã®ç¨€ãªå ´åˆã¯ã€ä»–ã®ã‚«ãƒ©"
"ムやã€è¤‡æ•°ã®ã‚«ãƒ©ãƒ 〠SQL 構文を使ã£ãŸçµåˆã™ã‚‹ãŸã‚ã®å¼ã‚’指定ã§ãã¾ã™ã€‚(例㯠"
"<literal>org.hibernate.test.onetooneformula ã‚’å‚ç…§ã—ã¦ãã ã•ã„。)"
#. Tag: para
#: basic_mapping.xml:3471
#, no-c-format
msgid ""
"<literal>lazy (optional - defaults to proxy ): "
"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\" specifies that the "
"association will always be eagerly fetched. <emphasis>Note that if "
"<literal>constrained=\"false\", proxying is impossible and "
"Hibernate will eagerly fetch the association</emphasis>."
msgstr ""
"<literal>lazy (オプション - デフォルト㯠proxy ã¯ã€ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹å¤‰æ•°ã«æœ€åˆã«ã‚¢ã‚¯ã‚»ã‚¹ã—ãŸ"
"ã¨ãã«ã€ãƒ—ãƒãƒ‘ティをé…延フェッãƒã™ã‚‹ã‚ˆã†æŒ‡å®šã—ã¾ã™ (ビルド時ã«ãƒã‚¤ãƒˆã‚³ãƒ¼ãƒ‰å®Ÿ"
"装ãŒå¿…è¦ã«ãªã‚Šã¾ã™)。 <literal>lazy=\"false\" ã¯é–¢é€£ã‚’常ã«å³æ™‚ã«"
"フェッãƒã™ã‚‹ã‚ˆã†æŒ‡å®šã—ã¾ã™ã€‚ <emphasis>ã‚‚ã— constrained=\"false\" and Person respectively:"
msgstr ""
"主ã‚ー関連を行ã†ãŸã‚ã«ã¯ã€ä»¥ä¸‹ã®ãƒžãƒƒãƒ”ングを <literal>Employee 㨠"
"<literal>Person ã®ãã‚Œãžã‚Œã«è¿½åŠ ã—ã¦ãã ã•ã„。"
#. Tag: programlisting
#: basic_mapping.xml:3500
#, fuzzy, no-c-format
msgid "<one-to-one name=\"person\" class=\"Person\"/>"
msgstr "<one-to-one name=\"person\" class=\"Person\"/>"
#. Tag: programlisting
#: basic_mapping.xml:3502
#, fuzzy, no-c-format
msgid ""
"<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true\"/>"
msgstr ""
"<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true\"/>"
#. Tag: para
#: basic_mapping.xml:3504
#, 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:"
msgstr ""
"ã“ã“ã§ã€ PERSON 㨠EMPLOYEE テーブルã®é–¢ä¿‚ã™ã‚‹è¡Œã®ä¸»ã‚ーãŒåŒã˜ã§ã‚ã‚‹ã“ã¨ã‚’確"
"実ã«ã—ãªã‘ã‚Œã°ã„ã‘ã¾ã›ã‚“。ã“ã“ã§ã¯ã€ <literal>foreign ã¨ã„ã†ç‰¹æ®Šãª "
"Hibernate è˜åˆ¥å生æˆæˆ¦ç•¥ã‚’使ã„ã¾ã™ï¼š"
#. Tag: programlisting
#: basic_mapping.xml:3508
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:3510
#, no-c-format
msgid ""
"A newly saved instance of <literal>Person is assigned the same "
"primary key value as the <literal>Employee instance referred with "
"the <literal>employee property of that Person ."
msgstr ""
"<literal>Employee インスタンスãŒã€ Person ã® "
"<literal>employee プãƒãƒ‘ティã§å‚ç…§ã•ã‚Œã‚‹ã‚ˆã†ã«ã€æ–°ã—ãセーブã•ã‚ŒãŸ "
"<literal>Person ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã«ã¯åŒã˜ä¸»ã‚ーã®å€¤ãŒä»£å…¥ã•ã‚Œã¾ã™ã€‚æ–°"
"ã—ãセーブã™ã‚‹ <literal>Person インスタンスã¯ã€ãã® "
"<literal>Person ã® employee プãƒãƒ‘ティãŒå‚ç…§ã™"
"ã‚‹ <literal>Employee インスタンスã¨ã—ã¦åŒã˜ä¸»ã‚ーãŒå‰²ã‚Šå½“ã¦ã‚‰ã‚Œã¾"
"ã™ã€‚"
#. Tag: title
#: basic_mapping.xml:3518
#, no-c-format
msgid "Natural-id"
msgstr "natural-id"
#. Tag: para
#: basic_mapping.xml:3520
#, 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 "
"immutable. Map the properties of the natural key as <classname>@NaturalId<natural-id> "
"element. Hibernate will generate the necessary unique key and nullability "
"constraints and, as a result, your mapping will be more self-documenting."
msgstr ""
"主ã‚ーã¨ã—ã¦ä»£ç†ã‚ーã®ä½¿ç”¨ã‚’推奨ã—ã¾ã™ãŒã€ã™ã¹ã¦ã®ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã«å¯¾ã—ã¦è‡ªç„¶"
"ã‚ーをè˜åˆ¥ã™ã‚‹ã‚ˆã†ã«ã™ã¹ãã§ã™ã€‚自然ã‚ーã¯ãƒ¦ãƒ‹ãƒ¼ã‚¯ã‹ã¤éž null ãªä¸€ã¤ã®ãƒ—ãƒãƒ‘"
"ティã€ã¾ãŸã¯ãƒ—ãƒãƒ‘ティã®é€£çµã§ã™ã€‚ä¸å¤‰ã§ã‚ã‚Œã°ã•ã‚‰ã«è‰¯ã„ã§ã™ã€‚ <literal><"
"natural-id></literal> è¦ç´ 内ã§è‡ªç„¶ã‚ーã®ãƒ—ãƒãƒ‘ティをマッピングã—ã¾ã™ã€‚ "
"Hibernate ã¯å¿…然的ã«ãƒ¦ãƒ‹ãƒ¼ã‚¯ã‹ã¤ null 値を許å¯ã™ã‚‹åˆ¶ç´„を生æˆã—ã€ã“ã†ã—ã¦ãƒžãƒƒ"
"ピングã¯ã‚ˆã‚Šè‡ªå·±è¨˜è¿°çš„ã«ãªã‚Šã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:3529
#, no-c-format
msgid ""
"@Entity\n"
"public class Citizen {\n"
" @Id\n"
" @GeneratedValue\n"
" private Integer id;\n"
" private String firstname;\n"
" private String lastname;\n"
" \n"
" @NaturalId\n"
" @ManyToOne\n"
" private State state;\n"
"\n"
" @NaturalId\n"
" private String ssn;\n"
" ...\n"
"}\n"
"\n"
"\n"
"\n"
"//and later on query\n"
"List results = s.createCriteria( Citizen.class )\n"
" .add( Restrictions.naturalId().set( \"ssn\", \"1234\" ).set"
"( \"state\", ste ) )\n"
" .list();"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3531
#, no-c-format
msgid "Or in XML,"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3533
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:3535
#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals() and "
"<literal>hashCode() to compare the natural key properties of the "
"entity."
msgstr ""
"エンティティã®è‡ªç„¶ã‚ープãƒãƒ‘ティã®æ¯”較ã«ã¯ã€ <literal>equals() 㨠"
"<literal>hashCode() ã®å®Ÿè£…ã‚’å¼·ããŠå‹§ã‚ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3539
#, no-c-format
msgid ""
"This mapping is not intended for use with entities that have natural primary "
"keys."
msgstr ""
"ã“ã®ãƒžãƒƒãƒ”ングã¯è‡ªç„¶ä¸»ã‚ーを使ã£ãŸã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã§ã®ä½¿ç”¨ã‚’æ„図ã—ã¦ã„ã¾ã›ã‚“。"
#. Tag: para
#: basic_mapping.xml:3544
#, no-c-format
msgid ""
"<literal>mutable (optional - defaults to false (オプション〠デフォルト㯠false"
msgstr "<title>any"
#. Tag: para
#: basic_mapping.xml:3554
#, fuzzy, no-c-format
msgid ""
"There is one more type of property mapping. The <classname>@Any "
"mapping 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 ""
"プãƒãƒ‘ティマッピングã«ã¯ã•ã‚‰ã«ã‚‚ã†1ã¤ã®åž‹ãŒã‚ã‚Šã¾ã™ã€‚ <literal><any> annotation describes the column holding the "
"metadata information. To link the value of the metadata information and an "
"actual entity type, The <classname>@AnyDef and "
"<classname>@AnyDefs annotations are used. The metaType. You must specify the "
"mapping from values of the <literal>metaType to class names."
msgstr ""
"<literal>meta-type ã«ã‚ˆã‚Šã€ã‚¢ãƒ—リケーションã¯ã‚«ã‚¹ã‚¿ãƒ 型を指定ã§ãã¾"
"ã™ã€‚ã“ã®ã‚«ã‚¹ã‚¿ãƒ åž‹ã¯ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚«ãƒ©ãƒ ã®å€¤ã‚’〠<literal>id-type ã§"
"指定ã—ãŸåž‹ã®è˜åˆ¥åプãƒãƒ‘ティをæŒã£ãŸæ°¸ç¶šã‚¯ãƒ©ã‚¹ã¸ãƒžãƒƒãƒ”ングã—ã¾ã™ã€‚ meta-type "
"ã®å€¤ã‹ã‚‰ã‚¯ãƒ©ã‚¹åã¸ã®ãƒžãƒƒãƒ”ングを指定ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。"
#. Tag: programlisting
#: basic_mapping.xml:3574
#, no-c-format
msgid ""
"@Any( metaColumn = @Column( name = \"property_type\" ), fetch=FetchType."
"EAGER )\n"
"@AnyMetaDef( \n"
" idType = \"integer\", \n"
" metaType = \"string\", \n"
" metaValues = {\n"
" @MetaValue( value = \"S\", targetEntity = StringProperty.class ),\n"
" @MetaValue( value = \"I\", targetEntity = IntegerProperty.class )\n"
" } )\n"
"@JoinColumn( name = \"property_id\" )\n"
"public Property getMainProperty() {\n"
" return mainProperty;\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3576
#, no-c-format
msgid ""
"Note that <classname>@AnyDef can be mutualized and reused. It is "
"recommended to place it as a package metadata in this case."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3580
#, no-c-format
msgid ""
"//on a package\n"
"@AnyMetaDef( name=\"property\" \n"
" idType = \"integer\", \n"
" metaType = \"string\", \n"
" metaValues = {\n"
" @MetaValue( value = \"S\", targetEntity = StringProperty.class ),\n"
" @MetaValue( value = \"I\", targetEntity = IntegerProperty.class )\n"
" } )\n"
"package org.hibernate.test.annotations.any;\n"
"\n"
"\n"
"//in a class\n"
" @Any( metaDef=\"property\", metaColumn = @Column( name = \"property_type"
"\" ), fetch=FetchType.EAGER )\n"
" @JoinColumn( name = \"property_id\" )\n"
" public Property getMainProperty() {\n"
" return mainProperty;\n"
" }"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3582
#, no-c-format
msgid "The hbm.xml equivalent is:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3584
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:3587
#, no-c-format
msgid "You cannot mutualize the metadata in hbm.xml as you can in annotations."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:3606
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:3610
#, no-c-format
msgid "<literal>name: the property name."
msgstr "<literal>name: プãƒãƒ‘ティå。"
#. Tag: para
#: basic_mapping.xml:3614
#, no-c-format
msgid "<literal>id-type: the identifier type."
msgstr "<literal>id-type: è˜åˆ¥åã®åž‹ã€‚"
#. Tag: para
#: basic_mapping.xml:3618
#, no-c-format
msgid ""
"<literal>meta-type (optional - defaults to string(オプション - デフォルト㯠string (optional- defaults to none ): "
"the cascade style."
msgstr ""
"<literal>cascade (オプション - デフォルト㯠none (optional - defaults to true (オプション - デフォルト㯠true 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 . It is also a convenient way to "
"define a multi-column unique constraint. For example:"
msgstr ""
"<literal><properties> è¦ç´ ã¯ã‚¯ãƒ©ã‚¹ã®ãƒ—ãƒãƒ‘ティã®æŒ‡å®šã•ã‚ŒãŸã€"
"è«–ç†çš„ãªã‚°ãƒ«ãƒ¼ãƒ”ングをå¯èƒ½ã«ã—ã¾ã™ã€‚ã“ã®æ§‹é€ ã®æœ€ã‚‚é‡è¦ãªä½¿ç”¨æ–¹æ³•ã¯ã€ "
"<literal>property-ref ã®ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã«ãªã‚‹ãƒ—ãƒãƒ‘ティã®çµåˆã‚’許å¯ã™ã‚‹"
"ã“ã¨ã§ã™ã€‚ãã‚Œã¯ã¾ãŸã€è¤‡æ•°ã‚«ãƒ©ãƒ ã®ãƒ¦ãƒ‹ãƒ¼ã‚¯åˆ¶ç´„を定義ã™ã‚‹ç°¡å˜ãªæ–¹æ³•ã§ã‚‚ã‚ã‚Šã¾"
"ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:3668
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:3672
#, no-c-format
msgid ""
"<literal>name : the logical name of the grouping. It is "
"<emphasis>not an actual property name."
msgstr ""
"<literal>name : グルーピングã®è«–ç†å。実際ã®ãƒ—ãƒãƒ‘ティåã§ã¯ "
"<emphasis>ã‚ã‚Šã¾ã›ã‚“ 。"
#. Tag: para
#: basic_mapping.xml:3687
#, no-c-format
msgid ""
"<literal>optimistic-lock (optional - defaults to true (オプション - デフォルト㯠true "
"mapping:"
msgstr ""
"例ãˆã°ã€ã‚‚ã—以下ã®ã‚ˆã†ãª <literal><properties> マッピングãŒ"
"ã‚ã£ãŸå ´åˆï¼š"
#. Tag: programlisting
#: basic_mapping.xml:3705
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:3707
#, no-c-format
msgid ""
"You might have some legacy data association that refers to this unique key "
"of the <literal>Person table, instead of to the primary key:"
msgstr ""
"主ã‚ーã®ä»£ã‚ã‚Šã« <literal>Person テーブルã®ãƒ¦ãƒ‹ãƒ¼ã‚¯ã‚ーã¸ã®å‚照をæŒ"
"ã¤ã€ãƒ¬ã‚¬ã‚·ãƒ¼ãƒ‡ãƒ¼ã‚¿ã®é–¢é€£ã‚’æŒã¤ã‹ã‚‚ã—ã‚Œã¾ã›ã‚“。:"
#. Tag: programlisting
#: basic_mapping.xml:3711
#, fuzzy, no-c-format
msgid ""
"<many-to-one name=\"owner\"\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>"
#. Tag: para
#: basic_mapping.xml:3714
#, no-c-format
msgid ""
"When using annotations as a mapping strategy, such construct is not "
"necessary as the binding between a column and its related column on the "
"associated table is done directly"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3721
#, no-c-format
msgid ""
"The use of this outside the context of mapping legacy data is not "
"recommended."
msgstr ""
"ã—ã‹ã—ã€ã“ã®ã‚ˆã†ãªãƒ¬ã‚¬ã‚·ãƒ¼ãƒ‡ãƒ¼ã‚¿ãƒžãƒƒãƒ”ングã®ã‚³ãƒ³ãƒ†ã‚スト外ã¸ã®ä½¿ç”¨ã¯æŽ¨å¥¨ã—ã¾"
"ã›ã‚“。"
#. Tag: title
#: basic_mapping.xml:3726
#, no-c-format
msgid "Some hbm.xml specificities"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3728
#, no-c-format
msgid ""
"The hbm.xml structure has some specificities naturally not present when "
"using annotations, let's describe them briefly."
msgstr ""
#. Tag: title
#: basic_mapping.xml:3732
#, no-c-format
msgid "Doctype"
msgstr "Doctype"
#. Tag: para
#: basic_mapping.xml:3734
#, 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 hibernate3.jar . 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 ""
"XML マッピングã§ã¯ã€ãŠè¦‹ã›ã—ãŸã‚ˆã†ãªãƒ‰ã‚ュメント型を必ãšå®šç¾©ã™ã¹ãã§ã™ã€‚実際"
"ã® DTD ã¯ã€ä¸Šè¨˜ã® URL ã® <literal>hibernate-x.x.x/src/org/hibernatehibernate.jar 内ã«ã‚ã‚Šã¾"
"ã™ã€‚ Hibernate ã¯å¸¸ã«ã€ãã®ã‚¯ãƒ©ã‚¹ãƒ‘ス内㧠DTD を探ã—始ã‚ã¾ã™ã€‚インターãƒãƒƒãƒˆ"
"ã«ã‚ã‚‹ DTD ファイルを探ãã†ã¨ã—ãŸãªã‚‰ã€ã‚¯ãƒ©ã‚¹ãƒ‘スã®å†…容を見ã¦ã€ DTD 宣言を確"
"èªã—ã¦ãã ã•ã„。"
#. Tag: title
#: basic_mapping.xml:3743
#, no-c-format
msgid "EntityResolver"
msgstr "エンティティリゾルãƒ"
#. Tag: para
#: basic_mapping.xml:3745
#, 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 "
"implementation with the SAXReader it uses to read in the xml files. This "
"custom <literal>EntityResolver recognizes two different systemId "
"namespaces:"
msgstr ""
"å‰è¿°ã—ãŸã‚ˆã†ã«ã€ Hibernate ã¯ã¾ãšã‚¯ãƒ©ã‚¹ãƒ‘ス内㧠DTD を解決ã—よã†ã¨ã—ã¾ã™ã€‚ "
"<literal>org.xml.sax.EntityResolver ã®ã‚«ã‚¹ã‚¿ãƒ 実装を XML ファイルを"
"èªã¿è¾¼ã‚€ãŸã‚ã® SAXReader ã«ç™»éŒ²ã™ã‚‹ã“ã¨ã«ã‚ˆã£ã¦ã€ DTD を解決ã—ã¾ã™ã€‚ã“ã®ã‚«ã‚¹"
"タム㮠<literal>EntityResolver ã¯2ã¤ã®ç•°ãªã‚‹ã‚·ã‚¹ãƒ†ãƒ ID åå‰ç©ºé–“ã‚’"
"èªè˜ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3754
#, fuzzy, no-c-format
msgid ""
"a <literal>hibernate namespace is recognized whenever the resolver "
"encounters a systemId starting with <literal>http://www.hibernate.org/dtd/ ã¯ã€ãƒªã‚¾ãƒ«ãƒãŒ http://"
"hibernate.sourceforge.net/</literal> ã§å§‹ã¾ã‚‹ã‚·ã‚¹ãƒ†ãƒ ID ã«åˆ°é”ã—ãŸã¨ãã«èªè˜"
"ã•ã‚Œã¾ã™ã€‚ãã—ã¦ãƒªã‚¾ãƒ«ãƒã¯ã€ Hibernate ã®ã‚¯ãƒ©ã‚¹ã‚’ãƒãƒ¼ãƒ‰ã—ãŸã‚¯ãƒ©ã‚¹ãƒãƒ¼ãƒ€ã‚’用ã„"
"ã¦ã€ã“れらã®ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã‚’解決ã—よã†ã¨ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3762
#, no-c-format
msgid ""
"a <literal>user namespace is recognized whenever the resolver "
"encounters a systemId using a <literal>classpath:// 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 ""
"<literal>user namespace ã¯ã€ãƒªã‚¾ãƒ«ãƒãŒ URL プãƒãƒˆã‚³ãƒ«ã® "
"<literal>classpath:// を使ã£ãŸã‚·ã‚¹ãƒ†ãƒ ID ã«åˆ°é”ã—ãŸã¨ãã«ã€èªè˜ã•"
"ã‚Œã¾ã™ã€‚ãã—ã¦ãƒªã‚¾ãƒ«ãƒã¯ã€ (1) カレントスレッドã®ã‚³ãƒ³ãƒ†ã‚ストクラスãƒãƒ¼ãƒ€ãƒ¼ã€"
"ã¾ãŸã¯ (2) Hibernate ã®ã‚¯ãƒ©ã‚¹ã‚’ãƒãƒ¼ãƒ‰ã—ãŸã‚¯ãƒ©ã‚¹ãƒãƒ¼ãƒ€ã‚’使ã£ã¦ã€ã“れらã®ã‚¨ãƒ³"
"ティティを解決ã—よã†ã¨ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3771
#, no-c-format
msgid "The following is an example of utilizing user namespacing:"
msgstr "下記ã¯ã€ãƒ¦ãƒ¼ã‚¶ãƒ¼åå‰ç©ºé–“を使ã£ãŸä¾‹ã§ã™ï¼š"
#. Tag: programlisting
#: basic_mapping.xml:3774
#, no-c-format
msgid ""
"<xi:include href=\"../extras/namespacing.xml_sample\" parse=\"text\"\n"
" xmlns:xi=\"http://www.w3.org/2001/XInclude\" />"
msgstr ""
#. Tag: para
#: basic_mapping.xml:3776
#, fuzzy, no-c-format
msgid ""
"Where <literal>types.xml is a resource in the your."
"domain</literal> package and contains a custom ."
msgstr ""
"ã“ã“㧠<literal>types.xml 㯠your.domain パッ"
"ケージ内ã®ãƒªã‚½ãƒ¼ã‚¹ã§ã‚ã‚Šã€ã‚«ã‚¹ã‚¿ãƒ 型定義 <xref linkend=\"mapping-types-custom"
"\"/> ã‚’å«ã¿ã¾ã™ã€‚"
#. Tag: title
#: basic_mapping.xml:3783
#, fuzzy, no-c-format
msgid "Hibernate-mapping"
msgstr "hibernate-mapping"
#. Tag: para
#: basic_mapping.xml:3785
#, no-c-format
msgid ""
"This element has several optional attributes. The <literal>schema "
"and <literal>catalog 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 attribute specifies what cascade style "
"should be assumed for properties and collections that do not specify a "
"<literal>cascade attribute. By default, the auto-import 属性"
"㨠<literal>catalog 属性ã¯ã€ã“ã®ãƒžãƒƒãƒ”ングãŒå‚ç…§ã™ã‚‹ãƒ†ãƒ¼ãƒ–ルãŒã€ã“"
"ã®å±žæ€§ã«ã‚ˆã£ã¦æŒ‡å®šã•ã‚ŒãŸã‚¹ã‚ーマã¨(ã¾ãŸã¯)ã‚«ã‚¿ãƒã‚°ã«å±žã™ã‚‹ã“ã¨ã‚’指定ã—ã¾ã™ã€‚"
"ã“ã®å±žæ€§ãŒæŒ‡å®šã•ã‚Œã‚‹ã¨ã€ãƒ†ãƒ¼ãƒ–ルåã¯ä¸Žãˆã‚‰ã‚ŒãŸã‚¹ã‚ーマåã¨ã‚«ã‚¿ãƒã‚°åã§ä¿®é£¾ã•"
"ã‚Œã¾ã™ã€‚ã“れらã®å±žæ€§ãŒæŒ‡å®šã•ã‚Œã¦ã„ãªã‘ã‚Œã°ã€ãƒ†ãƒ¼ãƒ–ルåã¯ä¿®é£¾ã•ã‚Œã¾ã›ã‚“。 "
"<literal>default-cascade 属性ã¯ã€ cascade 属性を"
"指定ã—ã¦ã„ãªã„プãƒãƒ‘ティやコレクションã«ã€ã©ã®ã‚«ã‚¹ã‚±ãƒ¼ãƒ‰ã‚¹ã‚¿ã‚¤ãƒ«ã‚’割り当ã¦ã‚‹"
"ã‹ã‚’指定ã—ã¾ã™ã€‚ <literal>auto-import 属性ã¯ã€ã‚¯ã‚¨ãƒªè¨€èªžå†…ã§ä¿®é£¾ã•"
"ã‚Œã¦ã„ãªã„クラスåã‚’ã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ä½¿ãˆã‚‹ã‚ˆã†ã«ã—ã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:3814
#, fuzzy, no-c-format
msgid ""
"<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 ""
"<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:3818
#, no-c-format
msgid "<literal>schema (optional): the name of a database schema."
msgstr "<literal>schema(オプション):データベーススã‚ーマã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:3823
#, no-c-format
msgid "<literal>catalog (optional): the name of a database catalog."
msgstr ""
"<literal>catalog (オプション):データベースカタãƒã‚°ã®åå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:3828
#, no-c-format
msgid ""
"<literal>default-cascade (optional - defaults to none (オプション - デフォルト㯠"
"<literal>none ): デフォルトã®ã‚«ã‚¹ã‚±ãƒ¼ãƒ‰ã‚¹ã‚¿ã‚¤ãƒ«ã€‚"
#. Tag: para
#: basic_mapping.xml:3833
#, no-c-format
msgid ""
"<literal>default-access (optional - defaults to property."
msgstr ""
"<literal>default-access (オプション - デフォルト㯠"
"<literal>property ): Hibernate ãŒãƒ—ãƒãƒ‘ティã«ã‚¢ã‚¯ã‚»ã‚¹ã™ã‚‹éš›ã«å–ã‚‹"
"ã¹ã戦略。 <literal>PropertyAccessor を実装ã™ã‚‹ã“ã¨ã§ã‚«ã‚¹ã‚¿ãƒžã‚¤ã‚ºå¯"
"能。"
#. Tag: para
#: basic_mapping.xml:3840
#, no-c-format
msgid ""
"<literal>default-lazy (optional - defaults to truelazy "
"attributes of class and collection mappings."
msgstr ""
"<literal>default-lazy (オプション - デフォルト㯠truelazy 属性ãŒæŒ‡å®šã•ã‚Œã¦ã„ãªã„クラスやコレクショ"
"ンマッピングã«å¯¾ã™ã‚‹ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆå€¤ã€‚"
#. Tag: para
#: basic_mapping.xml:3847
#, no-c-format
msgid ""
"<literal>auto-import (optional - defaults to true (オプション - デフォルト㯠true (optional): specifies a package prefix to use for "
"unqualified class names in the mapping document."
msgstr ""
"<literal>package (オプション): マッピングドã‚ュメント内ã§ä¿®é£¾ã•ã‚Œã¦"
"ã„ãªã„クラスåã«å¯¾ã—ã¦å‰²ã‚Šå½“ã¦ã‚‹ã€ãƒ‘ッケージã®æŽ¥é 辞 (prefix) を指定ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3861
#, no-c-format
msgid ""
"If you have two persistent classes with the same unqualified name, you "
"should set <literal>auto-import=\"false\" . 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 ã¯ä¾‹å¤–ã‚’é€å‡ºã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:3866
#, no-c-format
msgid ""
"The <literal>hibernate-mapping element allows you to nest several "
"persistent <literal><class> 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.xmlDog.hbm.xml, or if using inheritance, "
"<literal>Animal.hbm.xml."
msgstr ""
"<literal>hibernate-mapping è¦ç´ ã¯ã€æœ€åˆã®ä¾‹ã§ç¤ºã—ãŸã‚ˆã†ã«ã„ãã¤ã‹ã®"
"永続 <literal><class> マッピングをãƒã‚¹ãƒˆã§ãã¾ã™ã€‚ã—ã‹ã—ã€ï¼‘"
"ã¤ã®ãƒžãƒƒãƒ”ングファイルã§ã¯ãŸã ã²ã¨ã¤ã®æ°¸ç¶šã‚¯ãƒ©ã‚¹(ã¾ãŸã¯ã²ã¨ã¤ã®ã‚¯ãƒ©ã‚¹éšŽå±¤)ã«"
"マッピングã™ã‚‹ã‚ˆã†ã«ã—ã€ã•ã‚‰ã«æ°¸ç¶šã‚¹ãƒ¼ãƒ‘ークラスã®å¾Œã§æŒ‡å®šã™ã‚‹ã¹ãã§ã—ょã†(ã„"
"ãã¤ã‹ã®ãƒ„ールã¯ã“ã®ã‚ˆã†ãªãƒžãƒƒãƒ”ングファイルを想定ã—ã¦ã„ã¾ã™)。例ãˆã°æ¬¡ã®ã‚ˆã†"
"ã«ãªã‚Šã¾ã™ã€‚: <literal>Cat.hbm.xml , Dog.hbm.xmlAnimal.hbm.xml 。"
#. Tag: title
#: basic_mapping.xml:3877
#, fuzzy, no-c-format
msgid "<title>Key"
msgstr "<title>key"
#. Tag: para
#: basic_mapping.xml:3879
#, fuzzy, no-c-format
msgid ""
"The <literal><key> element is 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> è¦ç´ ãŒå‡ºã¦ãã¾ã—ãŸã€‚ã“ã®è¦ç´ ã¯æ–°"
"ã—ã„テーブルã¸ã®çµåˆã‚’定義ã—ãŸã‚Šã€çµåˆãƒ†ãƒ¼ãƒ–ルã§å¤–部ã‚ーを定義ã—ãŸã‚Šã™ã‚‹è¦ªè¦"
"ç´ ã®ã©ã“ã«ã§ã‚‚ç¾ã‚Œã€ã‚ªãƒªã‚¸ãƒŠãƒ«ãƒ†ãƒ¼ãƒ–ルã®ä¸»ã‚ーをå‚ç…§ã—ã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:3900
#, fuzzy, no-c-format
msgid ""
"<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"
"/>"
#. Tag: para
#: basic_mapping.xml:3910
#, no-c-format
msgid ""
"<literal>on-delete (optional - defaults to noaction (オプション, デフォルト㯠noaction (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 (オプション): オリジナルテーブルã®ä¸»ã‚ーã§ã¯"
"ãªã„カラムをå‚ç…§ã™ã‚‹å¤–部ã‚ーを指定ã—ã¾ã™ (レガシーデータã«å¯¾ã—ã¦æä¾›ã•ã‚Œã¾"
"ã™)。"
#. Tag: para
#: basic_mapping.xml:3922
#, no-c-format
msgid ""
"<literal>not-null (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 (オプション): 外部ã‚ーカラム㌠null 値を許容ã—ãª"
"ã„ã“ã¨ã‚’指定ã—ã¾ã™ (ã“ã®ã“ã¨ã¯å¤–部ã‚ーãŒä¸»ã‚ーã®ä¸€éƒ¨ã§ã‚ã‚‹ã“ã¨ã‚’暗黙的ã«ç¤ºã—"
"ã¾ã™)。"
#. Tag: para
#: basic_mapping.xml:3928
#, no-c-format
msgid ""
"<literal>update (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 (オプション): 外部ã‚ーを決ã—ã¦æ›´æ–°ã—ã¦ã¯ãªã‚‰ãªã„ã“"
"ã¨ã‚’指定ã—ã¾ã™ (ã“ã®ã“ã¨ã¯å¤–部ã‚ーãŒä¸»ã‚ーã®ä¸€éƒ¨ã§ã‚ã‚‹ã“ã¨ã‚’暗黙的ã«ç¤ºã—ã¾"
"ã™)。"
#. Tag: para
#: basic_mapping.xml:3934
#, no-c-format
msgid ""
"<literal>unique (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 (オプション): 外部ã‚ーãŒãƒ¦ãƒ‹ãƒ¼ã‚¯åˆ¶ç´„ã‚’æŒã¤ã¹ãã§ã‚"
"ã‚‹ã“ã¨ã‚’指定ã—ã¾ã™ (ã“ã®ã“ã¨ã¯å¤–部ã‚ーãŒä¸»ã‚ーã®ä¸€éƒ¨ã§ã‚ã‚‹ã“ã¨ã‚’暗黙的ã«ç¤ºã—"
"ã¾ã™)。"
#. Tag: para
#: basic_mapping.xml:3941
#, no-c-format
msgid ""
"For systems where delete performance is important, we recommend that all "
"keys should be defined <literal>on-delete=\"cascade\". Hibernate "
"uses a database-level <literal>ON CASCADE DELETE constraint, "
"instead of many individual <literal>DELETE statements. Be aware "
"that this feature bypasses Hibernate's usual optimistic locking strategy for "
"versioned data."
msgstr ""
"削除ã®ãƒ‘フォーマンスãŒé‡è¦ã§ã‚るシステムã«ã¯ã€ã™ã¹ã¦ã®ã‚ーを <literal>on-"
"delete=\"cascade\"</literal> ã¨å®šç¾©ã™ã‚‹ã“ã¨ã‚’推奨ã—ã¾ã™ã€‚ãã†ã™ã‚‹ã“ã¨ã§ "
"Hibernate ã¯ã€ <literal>DELETE 文を毎回発行ã™ã‚‹ä»£ã‚ã‚Šã«ã€ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼"
"スレベル㮠<literal>ON CASCADE DELETE 制約を使用ã—ã¾ã™ã€‚ã“ã®ç‰¹å¾´ã¯"
"ãƒãƒ¼ã‚¸ãƒ§ãƒ³ä»˜ã‘られãŸãƒ‡ãƒ¼ã‚¿ã«å¯¾ã™ã‚‹ Hibernate ã®é€šå¸¸ã®æ¥½è¦³çš„ãƒãƒƒã‚¯æˆ¦ç•¥ã‚’無視ã™"
"ã‚‹ã¨ã„ã†ã“ã¨ã«æ³¨æ„ã—ã¦ãã ã•ã„。"
#. Tag: para
#: basic_mapping.xml:3949
#, no-c-format
msgid ""
"The <literal>not-null and update 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 declare the key column using <key not-"
"null=\"true\"></literal>."
msgstr ""
"<literal>not-null 㨠update 属性ã¯ã€å˜æ–¹å‘一対多"
"関連ã®æ™‚ã«ã¯æœ‰ç”¨ã§ã™ã€‚å˜æ–¹å‘一対多関連を null を許容ã—ãªã„外部ã‚ーã«ãƒžãƒƒãƒ”ン"
"ã‚°ã™ã‚‹ã¨ãã¯ã€ <literal><key not-null=\"true\"> を使ã£ã¦ã‚ー"
"カラムを宣言 <emphasis> ã—ãªãã¦ã¯ãªã‚Šã¾ã›ã‚“ 。"
#. Tag: title
#: basic_mapping.xml:3958
#, fuzzy, no-c-format
msgid "Import"
msgstr "import"
#. Tag: para
#: basic_mapping.xml:3960
#, 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\". You can also import classes and "
"interfaces that are not explicitly mapped:"
msgstr ""
"アプリケーションã«åŒã˜åå‰ã®2ã¤ã®æ°¸ç¶šã‚¯ãƒ©ã‚¹ãŒã‚り〠Hibernate クエリã§å®Œå…¨ä¿®"
"飾ã•ã‚ŒãŸï¼ˆãƒ‘ッケージã®ï¼‰åå‰ã‚’指定ã—ãŸããªã„ã¨ä»®å®šã—ã¾ã™ã€‚ãã®ã‚ˆã†ãªå ´åˆã¯ "
"<literal>auto-import=\"true\" ã«é ¼ã‚‰ãšã€ã‚¯ãƒ©ã‚¹ãŒã€Œã‚¤ãƒ³ãƒãƒ¼ãƒˆã€ã•ã‚Œ"
"ãŸã‚‚ã®ã§ã‚ã‚‹ã¨æ˜Žç¤ºã§ãã¾ã™ã€‚明示的ã«ãƒžãƒƒãƒ”ングã•ã‚Œã¦ã„ãªã„クラスやインター"
"フェースã§ã•ãˆã‚‚インãƒãƒ¼ãƒˆã§ãã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:3966
#, fuzzy, no-c-format
msgid "<import class=\"java.lang.Object\" rename=\"Universe\"/>"
msgstr "<import class=\"java.lang.Object\" rename=\"Universe\"/>"
#. Tag: programlisting
#: basic_mapping.xml:3975
#, fuzzy, no-c-format
msgid ""
"<import\n"
" class=\"ClassName\"\n"
" rename=\"ShortName\"\n"
"/>"
msgstr ""
"<import\n"
" class=\"ClassName\"\n"
" rename=\"ShortName\"\n"
"/>"
#. Tag: para
#: basic_mapping.xml:3979
#, no-c-format
msgid ""
"<literal>class: the fully qualified class name of any Java class."
msgstr "<literal>class: Java クラスã®å®Œå…¨ä¿®é£¾ã•ã‚ŒãŸã‚¯ãƒ©ã‚¹å。"
#. Tag: para
#: basic_mapping.xml:3984
#, no-c-format
msgid ""
"<literal>rename (optional - defaults to the unqualified class "
"name): a name that can be used in the query language."
msgstr ""
"<literal>rename (オプション - デフォルトã¯ä¿®é£¾ã•ã‚Œã¦ã„ãªã„クラス"
"å): クエリ言語ã§ä½¿ã‚れるåå‰ã€‚"
#. Tag: para
#: basic_mapping.xml:3992
#, no-c-format
msgid "This feature is unique to hbm.xml and is not supported in annotations."
msgstr ""
#. Tag: title
#: basic_mapping.xml:3998
#, no-c-format
msgid "Column and formula elements"
msgstr "column 㨠formula è¦ç´ "
#. Tag: para
#: basic_mapping.xml:4000
#, no-c-format
msgid ""
"Mapping elements which accept a <literal>column attribute will "
"alternatively accept a <literal><column> subelement. "
"Likewise, <literal><formula> is an alternative to the "
"<literal>formula attribute. For example:"
msgstr ""
"<literal>column 属性を記述ã§ãã‚‹ä»»æ„ã®ãƒžãƒƒãƒ”ングè¦ç´ ã¯ã¾ãŸã€ "
"<literal><column> サブè¦ç´ も記述ã§ãã¾ã™ã€‚åŒæ§˜ã« "
"<literal><formula> ã‚‚ formula 属性ã®ä»£æ›¿æ‰‹"
"段ã§ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:4006
#, fuzzy, no-c-format
msgid ""
"<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\"\n"
" read=\"SQL expression\"\n"
" write=\"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\"/>"
#. Tag: programlisting
#: basic_mapping.xml:4008
#, fuzzy, no-c-format
msgid "<formula>SQL expression</formula>"
msgstr "<formula>SQL expression</formula>"
#. Tag: para
#: basic_mapping.xml:4010
#, no-c-format
msgid ""
"Most of the attributes on <literal>column provide a means of "
"tailoring the DDL during automatic schema generation. The <literal>readwrite 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: para
#: basic_mapping.xml:4018
#, fuzzy, no-c-format
msgid ""
"The <literal>column and formula elements can "
"even be combined within the same property or association mapping to express, "
"for example, exotic join conditions."
msgstr ""
"åŒã˜ãƒ—ãƒãƒ‘ティや関連ã®ãƒžãƒƒãƒ”ングã®ä¸ã§ã€ <literal>column 㨠"
"<literal>formula 属性を組ã¿åˆã‚ã›ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚例ãˆã°ã€ç‰¹æ®Šãªçµ"
"åˆæ¡ä»¶ãªã©ã§ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:4022
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: title
#: basic_mapping.xml:4028
#, no-c-format
msgid "Hibernate types"
msgstr "Hibernate ã®åž‹"
#. Tag: title
#: basic_mapping.xml:4031
#, no-c-format
msgid "Entities and values"
msgstr "エンティティã¨å€¤"
#. Tag: para
#: basic_mapping.xml:4033
#, 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:4036
#, no-c-format
msgid ""
"An <emphasis>entity 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 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 ""
"<emphasis>エンティティ ã¯ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã¸ã®å‚照をä¿æŒã™ã‚‹ã€ä»–ã®ã™ã¹"
"ã¦ã®ã‚ªãƒ–ジェクトã‹ã‚‰ç‹¬ç«‹ã—ã¦å˜åœ¨ã—ã¾ã™ã€‚å‚ç…§ã•ã‚Œãªã„オブジェクトãŒã‚¬ãƒ™ãƒ¼ã‚¸ã‚³"
"レクトã•ã‚Œã¦ã—ã¾ã†æ€§è³ªã‚’æŒã¤é€šå¸¸ã® Java モデルã¨ã€ã“れを比ã¹ã¦ã¿ã¦ãã ã•ã„。"
"(親エンティティã‹ã‚‰åã¸ã€ã‚»ãƒ¼ãƒ–ã¨å‰Šé™¤ãŒ <emphasis>カスケード ã•ã‚Œ"
"ã†ã‚‹ã“ã¨ã‚’除ã„ã¦ï¼‰ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã¯æ˜Žç¤ºçš„ã«ã‚»ãƒ¼ãƒ–ã¾ãŸã¯å‰Šé™¤ã•ã‚Œãªã‘ã‚Œã°ãªã‚Šã¾ã›"
"ん。ã“ã‚Œã¯åˆ°é”å¯èƒ½æ€§ã«ã‚ˆã‚‹ã‚ªãƒ–ジェクト永続化㮠ODMG モデルã¨ã¯ç•°ãªã£ã¦ã„ã¾"
"ã™ã€‚大è¦æ¨¡ãªã‚·ã‚¹ãƒ†ãƒ ã§ã‚¢ãƒ—リケーションオブジェクトãŒæ™®é€šã©ã®ã‚ˆã†ã«ä½¿ã‚れるã‹"
"ã«ã‚ˆã‚Šå¯†æŽ¥ã«å¯¾å¿œã—ã¾ã™ã€‚エンティティã¯å¾ªç’°ã¨å‚ç…§ã®å…±æœ‰ã‚’サãƒãƒ¼ãƒˆã—ã¾ã™ã€‚ã¾ãŸ"
"ãれらã¯ãƒãƒ¼ã‚¸ãƒ§ãƒ³ä»˜ã‘ã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4046
#, no-c-format
msgid ""
"An entity's persistent state consists of references to other entities and "
"instances of <emphasis>value 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 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 ""
"エンティティã®æ°¸ç¶šçŠ¶æ…‹ã¯ä»–ã®ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã‚„ <emphasis>値 åž‹ã®ã‚¤ãƒ³ã‚¹"
"タンスã¸ã®å‚ç…§ã‹ã‚‰æ§‹æˆã•ã‚Œã¾ã™ã€‚値ã¯ãƒ—リミティブã€ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ (コレクション"
"ã®å†…部ã§ã¯ãªã)ã€ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã€ä¸å¤‰ã‚ªãƒ–ジェクトã§ã™ã€‚エンティティã¨ã¯é•ã„ã€"
"値ã¯ï¼ˆç‰¹ã«ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã¨ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã«ãŠã„ã¦ï¼‰ã€åˆ°é”å¯èƒ½æ€§ã«ã‚ˆã‚‹æ°¸ç¶šåŒ–や削"
"除㌠<emphasis>è¡Œã‚ã‚Œã¾ã™ 。値オブジェクト(ã¨ãƒ—リミティブ)ã¯ã€åŒ…"
"å«ã™ã‚‹ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã¨ä¸€ç·’ã«æ°¸ç¶šåŒ–や削除ãŒè¡Œã‚れるã®ã§ã€ãれらを独立ã«ãƒãƒ¼ã‚¸ãƒ§"
"ン付ã‘ã™ã‚‹ã“ã¨ã¯ã§ãã¾ã›ã‚“。値ã«ã¯ç‹¬ç«‹ã—ãŸã‚¢ã‚¤ãƒ‡ãƒ³ãƒ†ã‚£ãƒ†ã‚£ãŒãªã„ã®ã§ã€è¤‡æ•°ã®"
"エンティティやコレクションãŒã“れを共有ã™ã‚‹ã“ã¨ã¯ã§ãã¾ã›ã‚“。"
#. Tag: para
#: basic_mapping.xml:4056
#, 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 is "
"a user-defined class with value semantics. A Java property of type "
"<literal>java.lang.String 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 ""
"ã“ã‚Œã¾ã§ã€Œæ°¸ç¶šã‚¯ãƒ©ã‚¹ã€ã¨ã„ã†è¨€è‘‰ã‚’エンティティã®æ„味ã§ä½¿ã£ã¦ãã¾ã—ãŸã€‚ã“ã‚Œã‹"
"らもãã†ã—ã¦ã„ãã¾ã™ã€‚厳密ã«è¨€ã†ã¨ã€æ°¸ç¶šçŠ¶æ…‹ã‚’æŒã¤ãƒ¦ãƒ¼ã‚¶ãƒ¼å®šç¾©ã®ã‚¯ãƒ©ã‚¹ã®ã™ã¹"
"ã¦ãŒã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã¨ã„ã†ã‚ã‘ã§ã¯ã‚ã‚Šã¾ã›ã‚“。 <emphasis>コンãƒãƒ¼ãƒãƒ³ãƒˆjava."
"lang.String</literal> åž‹ã®ãƒ—ãƒãƒ‘ティもã¾ãŸå€¤ã®ã‚»ãƒžãƒ³ãƒ†ã‚£ã‚¯ã‚¹ã‚’æŒã¡ã¾ã™ã€‚定義"
"ã™ã‚‹ãªã‚‰ã€ JDK ã§æä¾›ã•ã‚Œã¦ã„ã‚‹ã™ã¹ã¦ã® Java ã®åž‹ (クラス) ãŒå€¤ã®ã‚»ãƒžãƒ³ãƒ†ã‚£ã‚¯"
"スをæŒã¤ã¨ã„ãˆã¾ã™ã€‚一方ユーザー定義型ã¯ã€ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã‚„値型ã®ã‚»ãƒžãƒ³ãƒ†ã‚£ã‚¯ã‚¹"
"ã¨ã¨ã‚‚ã«ãƒžãƒƒãƒ”ングã§ãã¾ã™ã€‚ã“ã®æ±ºå®šã¯ã‚¢ãƒ—リケーション開発者次第ã§ã™ã€‚ãã®ã‚¯"
"ラスã®ï¼‘ã¤ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã¸ã®å…±æœ‰å‚ç…§ã¯ã€ãƒ‰ãƒ¡ã‚¤ãƒ³ãƒ¢ãƒ‡ãƒ«å†…ã®ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã‚¯ãƒ©ã‚¹"
"ã«å¯¾ã™ã‚‹è‰¯ã„ヒントã«ãªã‚Šã¾ã™ã€‚一方åˆæˆé›†ç´„や集約ã¯ã€é€šå¸¸å€¤åž‹ã¸å¤‰æ›ã•ã‚Œã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4069
#, no-c-format
msgid "We will revisit both concepts throughout this reference guide."
msgstr "本ドã‚ュメントを通ã—ã¦ã€ä½•åº¦ã‚‚ã“ã®æ¦‚念をå–り上ã’ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4072
#, 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>, <subclass> and so on are used. "
"For value types we use <literal><property>, <"
"component></literal>etc., that usually have a type "
"attribute. The value of this attribute is the name of a Hibernate "
"<emphasis>mapping type. 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 ""
"Java åž‹ã®ã‚·ã‚¹ãƒ†ãƒ (ã‚‚ã—ãã¯é–‹ç™ºè€…ãŒå®šç¾©ã—ãŸã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã¨å€¤åž‹) ã‚’ SQL /データ"
"ベース型ã®ã‚·ã‚¹ãƒ†ãƒ ã«ãƒžãƒƒãƒ”ングã™ã‚‹ã“ã¨ã¯é›£ã—ã„ã§ã™ã€‚ Hibernate ã¯ï¼’ã¤ã®ã‚·ã‚¹ãƒ†"
"ムã®æž¶ã‘æ©‹ã‚’æä¾›ã—ã¾ã™ã€‚エンティティã«å¯¾ã—ã¦ã¯ <literal><class><subclass> ãªã©ã‚’使用ã—ã¾ã™ã€‚値型ã«å¯¾ã—"
"ã¦ã¯ <literal><property> ã‚„ <component>type ã¨å…±ã«ä½¿ã„ã¾ã™ã€‚ã“ã®å±žæ€§ã®å€¤ã¯ "
"Hibernate ã® <emphasis>マッピング型 ã®åå‰ã§ã™ã€‚ Hibernate 㯠(標"
"準 JDK ã®å€¤åž‹ã«å¯¾ã—ã¦) 多ãã®è‡ªç”±ãªãƒžãƒƒãƒ”ングをæä¾›ã—ã¾ã™ã€‚後ã§è¦‹ã‚‹ã‚ˆã†ã«ã€è‡ª"
"身ã®ãƒžãƒƒãƒ”ング型を記述ã—ã€åŒæ§˜ã«ã‚«ã‚¹ã‚¿ãƒ ã®å¤‰æ›æˆ¦ç•¥ã‚’実装ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4085
#, no-c-format
msgid ""
"With the exception of collections, all built-in Hibernate types support null "
"semantics."
msgstr ""
"コレクションを除ã組ã¿è¾¼ã¿ã® Hibernate ã®åž‹ã¯ã™ã¹ã¦ã€ null セマンティクスをサ"
"ãƒãƒ¼ãƒˆã—ã¾ã™ã€‚"
#. Tag: title
#: basic_mapping.xml:4090
#, no-c-format
msgid "Basic value types"
msgstr "基本的ãªåž‹"
#. Tag: para
#: basic_mapping.xml:4092
#, no-c-format
msgid ""
"The built-in <emphasis>basic mapping types can be roughly "
"categorized into the following:"
msgstr ""
"組ã¿è¾¼ã¿ã® <emphasis>基本的ãªãƒžãƒƒãƒ”ング型 ã¯å¤§ã¾ã‹ã«ä»¥ä¸‹ã®ã‚ˆã†ã«åˆ†"
"ã‘られã¾ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:4095
#, fuzzy, no-c-format
msgid ""
"integer, long, short, float, double, character, byte, boolean, yes_no, "
"true_false"
msgstr ""
"<literal>integer, long, short, float, double, character, byte, boolean, "
"yes_no, true_false</literal>"
#. Tag: para
#: basic_mapping.xml:4099
#, no-c-format
msgid ""
"Type mappings from Java primitives or wrapper classes to appropriate (vendor-"
"specific) SQL column types. <literal>boolean, yes_no and "
"<literal>true_false are all alternative encodings for a Java "
"<literal>boolean or java.lang.Boolean ."
msgstr ""
"Java ã®ãƒ—リミティブやラッパークラスã‹ã‚‰é©åˆ‡ãªï¼ˆãƒ™ãƒ³ãƒ€ãƒ¼å›ºæœ‰ã®ï¼‰ SQL カラム型"
"ã¸ã®åž‹ãƒžãƒƒãƒ”ング。 <literal>boolean, yes_no 㨠"
"<literal>true_false ã¯ã€ã™ã¹ã¦ Java ã® boolean "
"ã¾ãŸã¯ <literal>java.lang.Boolean ã®ä»£æ›¿ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã§ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:4109
#, no-c-format
msgid "string"
msgstr "string"
#. Tag: para
#: basic_mapping.xml:4112
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.String to VARCHARVARCHAR2 )."
msgstr ""
"<literal>java.lang.String ã‹ã‚‰ VARCHAR (ã¾ãŸã¯ "
"Oracle ã® <literal>VARCHAR2 )ã¸ã®åž‹ãƒžãƒƒãƒ”ング。"
#. Tag: literal
#: basic_mapping.xml:4119
#, fuzzy, no-c-format
msgid "date, time, timestamp"
msgstr "<literal>date, time, timestamp"
#. Tag: para
#: basic_mapping.xml:4122
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Date and its subclasses to "
"SQL types <literal>DATE, TIME and "
"<literal>TIMESTAMP (or equivalent)."
msgstr ""
"<literal>java.util.Date ã¨ãã®ã‚µãƒ–クラスã‹ã‚‰ SQL åž‹ã® "
"<literal>DATE 〠TIME 〠TIMESTAMP"
#. Tag: para
#: basic_mapping.xml:4133
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Calendar to SQL types "
"<literal>TIMESTAMP and DATE (or equivalent)."
msgstr ""
"<literal>java.util.Calendar ã‹ã‚‰ SQL åž‹ ã®ã€Œ TIMESTAMPDATE (ã¾ãŸã¯ãれらã¨ç‰ä¾¡ãªã‚‚ã®ï¼‰ã¸ã®åž‹ãƒžãƒƒãƒ”ン"
"グ。"
#. Tag: literal
#: basic_mapping.xml:4140
#, fuzzy, no-c-format
msgid "big_decimal, big_integer"
msgstr "<literal>big_decimal, big_integer"
#. Tag: para
#: basic_mapping.xml:4143
#, no-c-format
msgid ""
"Type mappings from <literal>java.math.BigDecimal and java."
"math.BigInteger</literal> to NUMERIC (or Oracle "
"<literal>NUMBER )."
msgstr ""
"<literal>java.math.BigDecimal 㨠java.math.BigIntegerNUMERIC (ã¾ãŸã¯ Oracle ã® NUMBER"
#. Tag: para
#: basic_mapping.xml:4154
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Locale , java.util."
"TimeZone</literal> and java.util.Currency to "
"<literal>VARCHAR (or Oracle VARCHAR2 ). "
"Instances of <literal>Locale and Currency are "
"mapped to their ISO codes. Instances of <literal>TimeZone are "
"mapped to their <literal>ID."
msgstr ""
"<literal>java.util.Locale 〠java.util.TimeZonejava.util.Currency ã‹ã‚‰ VARCHARVARCHAR2 )ã¸ã®åž‹ãƒžãƒƒãƒ”ング。 "
"<literal>Locale 㨠Currency ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã¯ã€ã"
"れら㮠ISO コードã«ãƒžãƒƒãƒ”ングã•ã‚Œã¾ã™ã€‚ <literal>TimeZone ã®ã‚¤ãƒ³ã‚¹"
"タンスã¯ã€ãれら㮠<literal>ID ã«ãƒžãƒƒãƒ”ングã•ã‚Œã¾ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:4167
#, fuzzy, no-c-format
msgid "class"
msgstr "subclass"
#. Tag: para
#: basic_mapping.xml:4170
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.Class to VARCHARVARCHAR2 ). A Class "
"is mapped to its fully qualified name."
msgstr ""
"<literal>java.lang.Class ã‹ã‚‰ VARCHAR (ã¾ãŸã¯ "
"Oracle ã® <literal>VARCHAR2 )ã¸ã®åž‹ãƒžãƒƒãƒ”ング。 Class or "
"<literal>TEXT type."
msgstr ""
"é•·ã„ Java æ–‡å—列ã¯ã€ SQL ã® <literal>CLOB ã¾ãŸã¯ TEXT."
msgstr ""
"é•·ã„ Java æ–‡å—列ã¯ã€ SQL ã® <literal>CLOB ã¾ãŸã¯ TEXT 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 ã¨ã™ã‚‹"
"ã“ã¨ã‚‚ã§ãã¾ã™ã€‚"
#. Tag: literal
#: basic_mapping.xml:4215
#, no-c-format
msgid "clob, blob"
msgstr "clob, blob"
#. Tag: para
#: basic_mapping.xml:4218
#, no-c-format
msgid ""
"Type mappings for the JDBC classes <literal>java.sql.Clob and "
"<literal>java.sql.Blob. 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 㨠java.sql.Blob type. When read, the "
"<literal>CLOB value is immediately materialized into a Java "
"string. Some drivers require the <literal>CLOB value to be read "
"within a transaction. Once materialized, the Java string is available "
"outside of the transaction."
msgstr ""
#. Tag: literal
#: basic_mapping.xml:4241
#, fuzzy, no-c-format
msgid "materialized_blob"
msgstr "serializable"
#. Tag: para
#: basic_mapping.xml:4244
#, no-c-format
msgid ""
"Maps long Java byte arrays to a SQL <literal>BLOB type. When read, "
"the <literal>BLOB value is immediately materialized into a byte "
"array. Some drivers require the <literal>BLOB value to be read "
"within a transaction. Once materialized, the byte array is available outside "
"of the transaction."
msgstr ""
#. Tag: literal
#: basic_mapping.xml:4254
#, fuzzy, no-c-format
msgid ""
"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
"imm_serializable, imm_binary"
msgstr ""
"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
"imm_serializable, imm_binary</literal>"
#. Tag: para
#: basic_mapping.xml:4258
#, 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() for an instance mapped as "
"<literal>imm_timestamp. 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 ""
"ã»ã¨ã‚“ã©ã®å ´åˆã«å¯å¤‰ã§ã‚ã‚‹ Java ã®åž‹ã«å¯¾ã™ã‚‹åž‹ãƒžãƒƒãƒ”ング。 Hibernate ã¯ä¸å¤‰"
"㪠Java ã®åž‹ã«å¯¾ã—ã¦ã¯æœ€é©åŒ–ã‚’è¡Œã„ã€ã‚¢ãƒ—リケーションã¯ãれをä¸å¤‰ã‚ªãƒ–ジェクト"
"ã¨ã—ã¦æ‰±ã„ã¾ã™ã€‚例ãˆã° <literal>imm_timestamp ã¨ã—ã¦ãƒžãƒƒãƒ—ã—ãŸã‚¤ãƒ³"
"スタンスã«å¯¾ã—ã¦ã€ <literal>Date.setTime() を呼ã³å‡ºã—ã¦ã¯ãªã‚Šã¾ã›"
"ん。プãƒãƒ‘ティã®å€¤ã‚’変更ã—ãã®å¤‰æ›´ã‚’永続化ã™ã‚‹ãŸã‚ã«ã¯ã€ã‚¢ãƒ—リケーションã¯ãƒ—"
"ãƒãƒ‘ティã«å¯¾ã—ã¦æ–°ã—ã„ (åŒä¸€ã§ãªã„) オブジェクトを割り当ã¦ãªã‘ã‚Œã°ãªã‚Šã¾ã›"
"ん。"
#. Tag: para
#: basic_mapping.xml:4270
#, no-c-format
msgid ""
"Unique identifiers of entities and collections can be of any basic type "
"except <literal>binary, blob and clobblob 〠clob を除ãã€ã©ã‚“ãª"
"基本型ã§ã‚‚構ã„ã¾ã›ã‚“。(複åˆè˜åˆ¥åã§ã‚‚構ã„ã¾ã›ã‚“。以下を見ã¦ãã ã•ã„。)"
#. Tag: para
#: basic_mapping.xml:4275
#, no-c-format
msgid ""
"The basic value types have corresponding <literal>Type constants "
"defined on <literal>org.hibernate.Hibernate. For example, "
"<literal>Hibernate.STRING represents the string "
"type."
msgstr ""
"基本的ãªå€¤åž‹ã«ã¯ã€ <literal>org.hibernate.Hibernate ã§å®šç¾©ã•ã‚ŒãŸ "
"<literal>Type 定数ãŒãã‚Œãžã‚Œã‚ã‚Šã¾ã™ã€‚例ãˆã°ã€ Hibernate."
"STRING</literal> 㯠string 型を表ç¾ã—ã¦ã„ã¾ã™ã€‚"
#. Tag: title
#: basic_mapping.xml:4282
#, no-c-format
msgid "Custom value types"
msgstr "カスタム型"
#. Tag: para
#: basic_mapping.xml:4284
#, 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 VARCHAR 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>setName() of type java.lang.String "
"that is persisted to the columns <literal>FIRST_NAME, "
"<literal>INITIAL, SURNAME ."
msgstr ""
"開発者ãŒç‹¬è‡ªã®å€¤åž‹ã‚’作æˆã™ã‚‹ã“ã¨ã¯ã€æ¯”較的簡å˜ã§ã™ã€‚例ãˆã°ã€ <literal>java."
"lang.BigInteger</literal> åž‹ã®ãƒ—ãƒãƒ‘ティを VARCHAR カラム"
"ã«æ°¸ç¶šåŒ–ã—ãŸã„ã‹ã‚‚ã—ã‚Œã¾ã›ã‚“。 Hibernate ã¯ã“ã®ãŸã‚ã®çµ„ã¿è¾¼ã¿åž‹ã‚’用æ„ã—ã¦ã„ã¾"
"ã›ã‚“。ã—ã‹ã—カスタム型ã¯ã€ãƒ—ãƒãƒ‘ティ(ã¾ãŸã¯ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã®è¦ç´ )を1ã¤ã®ãƒ†ãƒ¼ãƒ–"
"ルカラムã«ãƒžãƒƒãƒ”ングã™ã‚‹ã®ã«åˆ¶é™ã¯ã‚ã‚Šã¾ã›ã‚“。ãã®ãŸã‚例ãˆã°ã€ <literal>java."
"lang.String</literal> åž‹ã® getName() / setName()"
"</literal> Java プãƒãƒ‘ティを FIRST_NAME 〠"
"<literal>INITIAL 〠SURNAME カラムã«æ°¸ç¶šåŒ–ã§ãã¾"
"ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4295
#, no-c-format
msgid ""
"To implement a custom type, implement either <literal>org.hibernate."
"UserType</literal> or org.hibernate.CompositeUserType and "
"declare properties using the fully qualified classname of the type. View "
"<literal>org.hibernate.test.DoubleStringType to see the kind of "
"things that are possible."
msgstr ""
"カスタム型を実装ã™ã‚‹ã«ã¯ã€ <literal>org.hibernate.UserType ã¾ãŸã¯ "
"<literal>org.hibernate.CompositeUserType を実装ã—ã€åž‹ã®å®Œå…¨ä¿®é£¾ã•ã‚Œ"
"ãŸåå‰ã‚’使ã£ã¦ãƒ—ãƒãƒ‘ティを定義ã—ã¾ã™ã€‚ã©ã®ã‚ˆã†ãªç¨®é¡žã®ã‚‚ã®ãŒå¯èƒ½ã‹ã‚’調ã¹ã‚‹ã«"
"ã¯ã€ <literal>org.hibernate.test.DoubleStringType を確èªã—ã¦ãã ã•"
"ã„。"
#. Tag: programlisting
#: basic_mapping.xml:4302
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:4304
#, no-c-format
msgid ""
"Notice the use of <literal><column> tags to map a property "
"to multiple columns."
msgstr ""
"<literal><column> ã‚¿ã‚°ã§ã€ãƒ—ãƒãƒ‘ティを複数ã®ã‚«ãƒ©ãƒ ã¸ãƒžãƒƒãƒ”ン"
"ã‚°ã§ãã‚‹ã“ã¨ã«æ³¨ç›®ã—ã¦ãã ã•ã„。"
#. Tag: para
#: basic_mapping.xml:4307
#, no-c-format
msgid ""
"The <literal>CompositeUserType, EnhancedUserTypeUserCollectionType , and "
"<literal>UserVersionType interfaces provide support for more "
"specialized uses."
msgstr ""
"<literal>CompositeUserType 〠EnhancedUserTypeUserCollectionType 〠"
"<literal>UserVersionType インターフェースã¯ã€ã‚ˆã‚Šç‰¹æ®Šãªä½¿ç”¨æ³•ã«å¯¾ã—"
"ã¦ã®ã‚µãƒãƒ¼ãƒˆã‚’æä¾›ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4313
#, no-c-format
msgid ""
"You can even supply parameters to a <literal>UserType in the "
"mapping file. To do this, your <literal>UserType must implement "
"the <literal>org.hibernate.usertype.ParameterizedType interface. "
"To supply parameters to your custom type, you can use the <literal><"
"type></literal> element in your mapping files."
msgstr ""
"マッピングファイル内㧠<literal>UserType ã¸ãƒ‘ラメータをæä¾›ã§ãã¾"
"ã™ã€‚ã“ã®ãŸã‚ã«ã¯ã€ <literal>UserType 㯠org.hibernate."
"usertype.ParameterizedType</literal> を実装ã—ãªãã¦ã¯ãªã‚Šã¾ã›ã‚“。カスタム型パ"
"ラメータをæä¾›ã™ã‚‹ãŸã‚ã«ã€ãƒžãƒƒãƒ”ングファイル内㧠<literal><type> can now retrieve the value for the parameter "
"named <literal>default from the Properties "
"object passed to it."
msgstr ""
"<literal>UserType ã¯ã€å¼•æ•°ã¨ã—ã¦æ¸¡ã•ã‚ŒãŸ Propertiesdefault ã§æŒ‡å®šã—ãŸãƒ‘ラメータã«"
"対ã™ã‚‹å€¤ã‚’検索ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4326
#, no-c-format
msgid ""
"If you regularly use a certain <literal>UserType, 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 ""
"特定㮠<literal>UserType ã‚’é »ç¹ã«ä½¿ç”¨ã™ã‚‹ãªã‚‰ã°ã€çŸã„åå‰ã‚’定義ã™ã‚‹"
"ã¨ä¾¿åˆ©ã«ãªã‚‹ã§ã—ょã†ã€‚ <literal><typedef> è¦ç´ を使ã£ã¦ã“ã®ã‚ˆ"
"ã†ãªã“ã¨ãŒè¡Œãˆã¾ã™ã€‚ Typedefs ã¯ã‚«ã‚¹ã‚¿ãƒ åž‹ã«åå‰ã‚’割り当ã¦ã¾ã™ã€‚ãã®åž‹ãŒãƒ‘ラ"
"メータをæŒã¤ãªã‚‰ã°ã€ãƒ‘ラメータã®ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆå€¤ã®ãƒªã‚¹ãƒˆã‚’å«ã‚€ã“ã¨ã‚‚ã§ãã¾ã™ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:4332
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: programlisting
#: basic_mapping.xml:4334
#, fuzzy, no-c-format
msgid "<property name=\"priority\" type=\"default_zero\"/>"
msgstr "<property name=\"priority\" type=\"default_zero\"/>"
#. Tag: para
#: basic_mapping.xml:4336
#, 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 ã§æä¾›ã•ã‚ŒãŸãƒ‘ラ"
"メータをãã®éƒ½åº¦ã‚ªãƒ¼ãƒãƒ¼ãƒ©ã‚¤ãƒ‰ã™ã‚‹ã“ã¨ãŒå¯èƒ½ã§ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4340
#, fuzzy, 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>MonetaryAmountCompositeUserType ã¨ã„ã†ã“ã¨ã‚’æ„味ã—ã¾ã™ã€‚ãã‚Œã§ã‚‚ãªãŠã€"
"アプリケーションã§é »å‡ºã™ã‚‹ (エンティティã§ã¯ãªã„) クラスã«å¯¾ã™ã‚‹ã‚«ã‚¹ã‚¿ãƒ åž‹ã®"
"使用ã¯ã€ã‚ˆã„ã‚„ã‚Šæ–¹ã§ã‚ã‚‹ã¨ã¿ãªã•ã‚Œã¾ã™ã€‚例ãˆã° <literal>MonetaryAmount ã®è‰¯ã„候補ã§ã™ã€‚カスタム型を使用ã™ã‚‹å‹•æ©Ÿ"
"ã®1ã¤ã¯æŠ½è±¡åŒ–ã§ã™ã€‚カスタム型を使ã†ã“ã¨ã§ã€é€šè²¨ã‚’ã©ã®ã‚ˆã†ã«è¡¨ç¾ã—よã†ã¨ã‚‚マッ"
"ピングドã‚ュメントã¯èµ·ã“ã‚Šã†ã‚‹å¤‰åŒ–ã«å¯¾å¿œã§ãã¾ã™ã€‚"
#. Tag: title
#: basic_mapping.xml:4353
#, no-c-format
msgid "Mapping a class more than once"
msgstr "1ã¤ã®ã‚¯ãƒ©ã‚¹ã«ï¼‘ã¤ä»¥ä¸Šã®ãƒžãƒƒãƒ”ング"
#. Tag: para
#: basic_mapping.xml:4355
#, 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 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 ""
"ã‚る永続クラスã«ã€ä¸€ã¤ä»¥ä¸Šã®ãƒžãƒƒãƒ”ングをæä¾›ã™ã‚‹ã“ã¨ãŒå‡ºæ¥ã¾ã™ã€‚ã“ã®å ´åˆã€"
"マッピングã™ã‚‹ï¼’ã¤ã®ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã‚’明確ã«ã™ã‚‹ãŸã‚ã«ã€ <emphasis>"
"エンティティå</emphasis> を指定ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“ (デフォルトã§ã¯ã‚¨ãƒ³ãƒ†ã‚£"
"ティåã¯ã‚¯ãƒ©ã‚¹åã¨åŒã˜ã§ã™ã€‚)。 Hibernate ã§ã¯ã€æ°¸ç¶šã‚ªãƒ–ジェクトを扱ã†ã¨ãã€"
"クエリを書ã込むã¨ãã€æŒ‡å®šã•ã‚ŒãŸã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã¸ã®é–¢é€£ã‚’マッピングã™ã‚‹ã¨ãã«ã€"
"エンティティåを指定ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。"
#. Tag: programlisting
#: basic_mapping.xml:4363
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:4365
#, no-c-format
msgid ""
"Associations are now specified using <literal>entity-name instead "
"of <literal>class."
msgstr ""
"関連㌠<literal>class ã®ä»£ã‚ã‚Šã« entity-name ã‚’"
"使ã£ã¦ã€ã©ã®ã‚ˆã†ã«æŒ‡å®šã•ã‚Œã‚‹ã®ã‹ã«æ³¨ç›®ã—ã¦ãã ã•ã„。"
#. Tag: para
#: basic_mapping.xml:4369 basic_mapping.xml:4497
#, no-c-format
msgid "This feature is not supported in Annotations"
msgstr ""
#. Tag: title
#: basic_mapping.xml:4374
#, no-c-format
msgid "SQL quoted identifiers"
msgstr "ãƒãƒƒã‚¯ã‚¯ã‚©ãƒ¼ãƒˆã§å›²ã‚“ã SQL è˜åˆ¥å"
#. Tag: para
#: basic_mapping.xml:4376
#, 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 ã«å¯¾å¿œã™ã‚‹ã€æ£ã—ã„引用スタイルを使ã„ã¾ã™"
"(普通ã¯ãƒ€ãƒ–ルクォートã§ã™ãŒã€ SQL Server ã§ã¯ã‹ãŽæ‹¬å¼§ã€ MySQL ã§ã¯ãƒãƒƒã‚¯"
"クォートã§ã™ï¼‰ã€‚"
#. Tag: programlisting
#: basic_mapping.xml:4382
#, fuzzy, no-c-format
msgid ""
"@Entity @Table(name=\"`Line Item`\")\n"
"class LineItem {\n"
" @id @Column(name=\"`Item Id`\") Integer id;\n"
" @Column(name=\"`Item #`\") int itemNumber\n"
"}\n"
"\n"
"<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>"
#. Tag: title
#: basic_mapping.xml:4386
#, no-c-format
msgid "Generated properties"
msgstr "生æˆãƒ—ãƒãƒ‘ティ"
#. Tag: para
#: basic_mapping.xml:4388
#, no-c-format
msgid ""
"Generated properties are properties that have their values generated by the "
"database. Typically, Hibernate applications needed to <literal>refresh ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã—ãŸã€‚ã—ã‹ã—ã€"
"プãƒãƒ‘ティãŒç”Ÿæˆã•ã‚ŒãŸã¨ã„ã†ã“ã¨ã‚’マークã™ã‚‹ã“ã¨ã§ã€ã‚¢ãƒ—リケーションã¯ãƒªãƒ•"
"レッシュã®è²¬ä»»ã‚’ Hibernate ã«å§”è²ã—ã¾ã™ã€‚基本的ã«ã€ç”Ÿæˆãƒ—ãƒãƒ‘ティをæŒã¤ã¨å®šç¾©"
"ã—ãŸã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã«å¯¾ã—㦠Hibernate ㌠INSERT ã‚„ UPDATE ã® SQL を発行ã—ãŸå¾Œã™"
"ãã«ã€ç”Ÿæˆã•ã‚ŒãŸå€¤ã‚’èªã¿è¾¼ã‚€ãŸã‚ã® SELECT SQL ãŒç™ºè¡Œã•ã‚Œã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4397
#, fuzzy, no-c-format
msgid ""
"Properties marked as generated must additionally be non-insertable and non-"
"updateable. Only <link linkend=\"mapping-declaration-version\">versionstimestamps, "
"and <link linkend=\"mapping-declaration-property\">simple properties, "
"can be marked as generated."
msgstr ""
"生æˆãƒ—ãƒãƒ‘ティã¯ã€æŒ¿å…¥ä¸å¯èƒ½ã‹ã¤æ›´æ–°ä¸å¯èƒ½ã§ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。 <xref "
"linkend=\"mapping-declaration-version\"/> ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã€ <xref linkend="
"\"mapping-declaration-timestamp\"/> タイムスタンプ〠<xref linkend=\"mapping-"
"declaration-property\"/> ç°¡å˜ãªãƒ—ãƒãƒ‘ティã ã‘ãŒç”Ÿæˆã•ã‚ŒãŸã¨ãƒžãƒ¼ã‚¯ã§ãã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4404
#, no-c-format
msgid ""
"<literal>never (the default): the given property value is not "
"generated within the database."
msgstr ""
"<literal>never (デフォルト) - 与ãˆã‚‰ã‚ŒãŸãƒ—ãƒãƒ‘ティã®å€¤ã¯ã€ãƒ‡ãƒ¼ã‚¿"
"ベースã‹ã‚‰ç”Ÿæˆã•ã‚Œãªã„ã“ã¨ã‚’æ„味ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4407
#, fuzzy, no-c-format
msgid ""
"<literal>insert: 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 properties can be marked as generated, this option is "
"not available."
msgstr ""
"<literal>insert - 与ãˆã‚‰ã‚ŒãŸãƒ—ãƒãƒ‘ティã®å€¤ã¯æŒ¿å…¥æ™‚ã«ç”Ÿæˆã•ã‚Œã‚‹ãŒã€"
"続ã„ã¦èµ·ã“る更新時ã«ã¯ç”Ÿæˆã•ã‚Œãªã„ã“ã¨ç¤ºã—ã¾ã™ã€‚作æˆã•ã‚ŒãŸæ—¥ä»˜ãªã©ã¯ã€ã“ã®ã‚«"
"テゴリã«åˆ†é¡žã•ã‚Œã¾ã™ã€‚ <xref linkend=\"mapping-declaration-version\"/> ãƒãƒ¼"
"ジョンや <xref linkend=\"mapping-declaration-timestamp\"/> タイムスタンプã®ãƒ—"
"ãƒãƒ‘ティã¯ç”Ÿæˆã•ã‚ŒãŸã¨ãƒžãƒ¼ã‚¯ã§ãã¾ã™ãŒã€ã“ã®ã‚ªãƒ—ションã¯åˆ©ç”¨ã§ããªã„ã“ã¨ã«æ³¨"
"æ„ã—ã¦ãã ã•ã„。"
#. Tag: para
#: basic_mapping.xml:4414
#, no-c-format
msgid ""
"<literal>always: the property value is generated both on insert "
"and on update."
msgstr ""
"<literal>always - 挿入時も更新時もプãƒãƒ‘ティã®å€¤ãŒç”Ÿæˆã•ã‚Œã‚‹ã“ã¨ã‚’"
"示ã—ã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4417
#, no-c-format
msgid "To mark a property as generated, use <classname>@Generated."
msgstr ""
#. Tag: title
#: basic_mapping.xml:4422
#, no-c-format
msgid "Column transformers: read and write expressions"
msgstr ""
#. Tag: para
#: basic_mapping.xml:4424
#, 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:"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:4430
#, no-c-format
msgid ""
"@Entity\n"
"class CreditCard {\n"
" @Column(name=\"credit_card_num\")\n"
" @ColumnTransformer(\n"
" read=\"decrypt(credit_card_num)\", \n"
" write=\"encrypt(?)\")\n"
" public String getCreditCardNumber() { return creditCardNumber; }\n"
" public void setCreditCardNumber(String number) { this.creditCardNumber = "
"number; }\n"
" private String creditCardNumber;\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:4432
#, no-c-format
msgid "or in XML"
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:4434
#, no-c-format
msgid ""
"<property name=\"creditCardNumber\">\n"
" <column \n"
" name=\"credit_card_num\"\n"
" read=\"decrypt(credit_card_num)\"\n"
" write=\"encrypt(?)\"/>\n"
"</property>"
msgstr ""
#. Tag: para
#: basic_mapping.xml:4437
#, no-c-format
msgid ""
"You can use the plural form <classname>@ColumnTransformers if "
"more than one columns need to define either of these rules."
msgstr ""
#. Tag: para
#: basic_mapping.xml:4442
#, no-c-format
msgid ""
"If a property uses more that one column, you must use the "
"<literal>forColumn attribute to specify which column, the "
"expressions are targeting."
msgstr ""
#. Tag: programlisting
#: basic_mapping.xml:4446
#, no-c-format
msgid ""
"@Entity\n"
"class User {\n"
" @Type(type=\"com.acme.type.CreditCardType\")\n"
" @Columns( {\n"
" @Column(name=\"credit_card_num\"),\n"
" @Column(name=\"exp_date\") } )\n"
" @ColumnTransformer(\n"
" forColumn=\"credit_card_num\", \n"
" read=\"decrypt(credit_card_num)\", \n"
" write=\"encrypt(?)\")\n"
" public CreditCard getCreditCard() { return creditCard; }\n"
" public void setCreditCard(CreditCard card) { this.creditCard = card; }\n"
" private CreditCard creditCard;\n"
"}"
msgstr ""
#. Tag: para
#: basic_mapping.xml:4448
#, 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 with two differences:"
msgstr ""
#. Tag: para
#: basic_mapping.xml:4453
#, 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
#: basic_mapping.xml:4458
#, no-c-format
msgid "The property is read-write, not read-only."
msgstr ""
#. Tag: para
#: basic_mapping.xml:4462
#, no-c-format
msgid ""
"The <literal>write expression, if specified, must contain exactly "
"one '?' placeholder for the value."
msgstr ""
#. Tag: title
#: basic_mapping.xml:4467
#, no-c-format
msgid "Auxiliary database objects"
msgstr "補助的ãªãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚ªãƒ–ジェクト"
#. Tag: para
#: basic_mapping.xml:4469
#, 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() method is valid (for "
"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ã¤ã®åŸºæœ¬çš„ãªæ–¹æ³•ãŒã‚ã‚Šã¾ã™ã€‚"
#. Tag: para
#: basic_mapping.xml:4479
#, no-c-format
msgid ""
"The first mode is to explicitly list the CREATE and DROP commands in the "
"mapping file:"
msgstr ""
"1ã¤ç›®ã®æ–¹æ³•ã¯ã€ CREATE 㨠DROP コマンドをマッピングファイルã®å¤–ã«ã€æ˜Žç¤ºçš„ã«è¨˜"
"載ã™ã‚‹ã“ã¨ã§ã™:"
#. Tag: programlisting
#: basic_mapping.xml:4482
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:4484
#, 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> インタフェースを実装ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。"
#. Tag: programlisting
#: basic_mapping.xml:4489
#, fuzzy, no-c-format
msgid ""
"<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>"
#. Tag: para
#: basic_mapping.xml:4491
#, 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:4494
#, fuzzy, no-c-format
msgid ""
"<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>"
#~ msgid ""
#~ "The <literal>force 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 属性ã¯æœ‰åŠ¹ã§ã™ã€‚ãŸã ã—ã€æ™®é€šã¯"
#~ "ãã†ã„ã†ã“ã¨ã¯ã‚ã‚Šã¾ã›ã‚“。"
#~ msgid "Class"
#~ msgstr "Class"
#~ msgid ""
#~ "Use of <literal>select-before-update 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."
#~ msgstr ""
#~ "<literal>select-before-update ã®ä½¿ç”¨ã¯é€šå¸¸ãƒ‘フォーマンスをè½ã¨ã—"
#~ "ã¾ã™ã€‚ã‚‚ã— <literal>Session ã¸åˆ†é›¢ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã®ã‚°ãƒ©ãƒ•ã‚’å†è¿½åŠ ã™"
#~ "ã‚‹ãªã‚‰ã€ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹æ›´æ–°ã®ãƒˆãƒªã‚¬ã‚’ä¸å¿…è¦ã«å‘¼ã³å‡ºã™ã®ã‚’é¿ã‘ã‚‹ã¨ã„ã†ç‚¹ã§ã€éž"
#~ "常ã«æœ‰ç”¨ã§ã™ã€‚"
#, fuzzy
#~ msgid "id"
#~ msgstr "uuid"
#~ msgid "Generator"
#~ msgstr "ジェãƒãƒ¬ãƒ¼ã‚¿"
#, fuzzy
#~ msgid "<literal>increment"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid "<literal>identity"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid "<literal>sequence"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid "<literal>seqhilo"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid "<literal>uuid"
#~ msgstr "<literal>sequence-identity"
#~ 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 進数å—ã®æ–‡å—列ã¨ã—ã¦ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã•ã‚Œã¾ã™ã€‚"
#, fuzzy
#~ msgid "<literal>guid"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid "<literal>native"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid "<literal>select"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid "<literal>foreign"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid ""
#~ "<literal>optimizer (optional - defaults to none (オプション - デフォルト㯠integer<key-property> property "
#~ "mappings and <literal><key-many-to-one> mappings as child "
#~ "elements."
#~ msgstr ""
#~ "複åˆã‚ーã®ã‚るテーブルã«å¯¾ã—ã€è˜åˆ¥åプãƒãƒ‘ティã¨ã—ã¦ã‚¯ãƒ©ã‚¹ã®è¤‡æ•°ã®ãƒ—ãƒãƒ‘"
#~ "ティをマッピングã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ <literal><composite-id><key-property> プãƒ"
#~ "パティマッピング㨠<literal><key-many-to-one> マッピングを"
#~ "å—ã‘入れã¾ã™ã€‚"
#~ msgid ""
#~ "The persistent class <emphasis>must override equals()"
#~ "</literal> and hashCode() to implement composite "
#~ "identifier equality. It must also implement <literal>SerializablehashCode() をオーãƒãƒ¼ãƒ©ã‚¤ãƒ‰ ã—ãª"
#~ "ã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“</emphasis> 。 ã¾ãŸ Serializable も実装"
#~ "ã—ãªã‘ã‚Œã°ã„ã‘ã¾ã›ã‚“。"
#~ 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() composite identifier, and "
#~ "discourage it for serious applications."
#~ msgstr ""
#~ "残念ãªãŒã‚‰è¤‡åˆè˜åˆ¥åã®ãŸã‚ã®ã“ã®æ–¹æ³•ã¯ã€æ°¸ç¶šã‚ªãƒ–ジェクトãŒè‡ªèº«ã®è˜åˆ¥åã§ã‚"
#~ "ã‚‹ã“ã¨ã‚’æ„味ã—ã¦ã„ã¾ã™ã€‚オブジェクト自身をè˜åˆ¥åã¨ã™ã‚‹ä»¥å¤–ã«ä¾¿åˆ©ãªã€Œæ‰±ã„"
#~ "æ–¹ã€ã¯ã‚ã‚Šã¾ã›ã‚“。複åˆã‚ーã«é–¢é€£ã—ãŸæ°¸ç¶šçŠ¶æ…‹ã‚’ <literal>load() "
#~ "出æ¥ã‚‹ã‚ˆã†ã«ãªã‚‹å‰ã«ã€æ°¸ç¶šã‚¯ãƒ©ã‚¹è‡ªèº«ã‚’インスタンス化ã—ã€è˜åˆ¥åプãƒãƒ‘ティを"
#~ "è¨å®šã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。 <emphasis> 組ã¿è¾¼ã¿ã® 複åˆè˜åˆ¥åã¨å‘¼"
#~ "ã°ã‚Œã‚‹ã“ã®ã‚¢ãƒ—ãƒãƒ¼ãƒã¯ã€æœ¬æ ¼çš„ãªã‚¢ãƒ—リケーションã«ã¯å‘ã„ã¦ã„ã¾ã›ã‚“。"
#~ msgid ""
#~ "A second approach is what we call a <emphasis>mapped 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 ""
#~ "2ã¤ç›®ã®æ–¹æ³•ã¯ <emphasis>マップã•ã‚ŒãŸ 複åˆè˜åˆ¥åã¨å‘¼ã°ã‚Œã‚‹ã‚‚ã®"
#~ "ã§ã€ <literal><composite-id>エレメント内ã§æŒ‡å®šã—ãŸè˜åˆ¥ãƒ—ãƒ"
#~ "パティãŒæ°¸ç¶šã‚¯ãƒ©ã‚¹ã¨åˆ†é›¢ã—ãŸè˜åˆ¥åクラスã®ä¸¡æ–¹ã«é‡è¤‡ã—ã¦å˜åœ¨ã—ã¾ã™ã€‚"
#~ msgid ""
#~ "In this example, both the composite identifier class, "
#~ "<literal>MedicareId, and the entity class itself have "
#~ "properties named <literal>medicareNumber and "
#~ "<literal>dependent. The identifier class must override "
#~ "<literal>equals() and hashCode() and "
#~ "implement <literal>Serializable. The main disadvantage of this "
#~ "approach is code duplication."
#~ msgstr ""
#~ "ã“ã®ä¾‹ã§ã¯ã€è¤‡åˆè˜åˆ¥åクラス( <literal>MedicareId )ã¨ã‚¨ãƒ³ãƒ†ã‚£"
#~ "ティクラス自身ã®ä¸¡æ–¹ãŒã€ <literal>medicareNumber 㨠"
#~ "<literal>dependent ã¨ã„ã†åå‰ã®ãƒ—ãƒãƒ‘ティをæŒã¡ã¾ã™ã€‚è˜åˆ¥åクラ"
#~ "スã¯ã€ <literal>equals() 㨠hashCode() をオー"
#~ "ãƒãƒ©ã‚¤ãƒ‰ã—〠<literal>Serializable を実装ã—ãªãã¦ã¯ãªã‚Šã¾ã›ã‚“。"
#~ "ã“ã®æ–¹æ³•ã«ã¯ã€æ˜Žã‚‰ã‹ã«ã‚³ãƒ¼ãƒ‰ãŒé‡è¤‡ã™ã‚‹ã¨ã„ã†ä¸éƒ½åˆãŒã‚ã‚Šã¾ã™ã€‚"
#~ msgid ""
#~ "The following attributes are used to specify a mapped composite "
#~ "identifier:"
#~ msgstr "次ã®å±žæ€§ã¯ãƒžãƒƒãƒ”ングã—ãŸè¤‡åˆè˜åˆ¥åを指定ã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã—ã¾ã™ï¼š"
#~ msgid ""
#~ "<literal>mapped (optional - defaults to false (オプションã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã¯ false (optional - but required for a mapped composite "
#~ "identifier): the class used as a composite identifier."
#~ msgstr ""
#~ "<literal>class (オプションã€ãŸã ã—マッピングã—ãŸè¤‡åˆè˜åˆ¥åã«ã¯å¿…"
#~ "é ˆ): 複åˆè˜åˆ¥åã¨ã—ã¦ä½¿ç”¨ã™ã‚‹ã‚¯ãƒ©ã‚¹ã€‚"
#~ 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 ""
#~ "3ã¤ç›®ã®ã•ã‚‰ã«ä¾¿åˆ©ãªæ–¹æ³•ã¯ã€è¤‡åˆè˜åˆ¥åã‚’ <xref linkend=\"components-"
#~ "compositeid\"/> ã®ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã‚¯ãƒ©ã‚¹ã¨ã—ã¦å®Ÿè£…ã™ã‚‹ã“ã¨ã§ã™ã€‚下ã§è¨˜è¿°ã—ã¦"
#~ "ã„る属性ã¯ã€ã“ã®ä»£æ›¿æ–¹æ³•ã«ã®ã¿é©ç”¨ã•ã‚Œã¾ã™:"
#~ msgid ""
#~ "<literal>name (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 (オプションã€ã“ã®ã‚¢ãƒ—ãƒãƒ¼ãƒã§ã¯å¿…é ˆ): 複åˆè˜åˆ¥åã‚’"
#~ "ä¿æŒã™ã‚‹ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã‚¿ã‚¤ãƒ—ã®ãƒ—ãƒãƒ‘ティ(9ç« ã‚’å‚ç…§ã—ã¦ãã ã•ã„)。"
#~ msgid ""
#~ "<literal>class (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 (オプション - デフォルトã¯ãƒªãƒ•ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã«ã‚ˆã‚Šæ±º"
#~ "定ã•ã‚Œã‚‹ãƒ—ãƒãƒ‘ティã®åž‹ï¼‰ï¼š 複åˆè˜åˆ¥åã¨ã—ã¦ä½¿ã‚れるコンãƒãƒ¼ãƒãƒ³ãƒˆã®ã‚¯ãƒ©ã‚¹"
#~ "(次ã®ç¯€ã‚’見ã¦ãã ã•ã„)。"
#~ msgid ""
#~ "The third approach, an <emphasis>identifier component, is "
#~ "recommended for almost all applications."
#~ msgstr ""
#~ "ã“ã®3ã¤ç›®ã®æ–¹æ³•ã¯ <emphasis> è˜åˆ¥åコンãƒãƒ¼ãƒãƒ³ãƒˆ ã¨å‘¼ã³ã€ã»ã¨"
#~ "ã‚“ã©ã™ã¹ã¦ã®ã‚¢ãƒ—リケーションã«å¯¾ã—ã¦æŽ¨å¥¨ã™ã‚‹æ–¹æ³•ã§ã™ã€‚"
#~ msgid "Version (optional)"
#~ msgstr "version(オプション)"
#~ msgid ""
#~ "The <literal><version> element is optional and indicates "
#~ "that the table contains versioned data. This is particularly useful if "
#~ "you plan to use <emphasis>long transactions. See below for "
#~ "more information:"
#~ msgstr ""
#~ "<literal><version> è¦ç´ ã¯ã‚ªãƒ—ションã§ã‚ã‚Šã€ãƒ†ãƒ¼ãƒ–ルãŒãƒãƒ¼"
#~ "ジョンデータをå«ã‚€ã“ã¨ã‚’示ã—ã¾ã™ã€‚ã“れ㯠<emphasis>ãƒãƒ³ã‚°ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³"
#~ "</emphasis> を使ã†ã¤ã‚‚ã‚Šãªã‚‰ã€ç‰¹ã«å½¹ç«‹ã¡ã¾ã™ï¼ˆä»¥ä¸‹ã‚’å‚ç…§ã—ã¦ãã ã•ã„)。"
#~ msgid ""
#~ "Version numbers can be of Hibernate type <literal>long, "
#~ "<literal>integer, short , timestampcalendar ."
#~ msgstr ""
#~ "ãƒãƒ¼ã‚¸ãƒ§ãƒ³ç•ªå·ã¯ Hibernate ã® <literal>long 〠"
#~ "<literal>integer 〠short 〠"
#~ "<literal>timestamp 〠calendar åž‹ã®ã„ãšã‚Œã‹ã§"
#~ "ã™ã€‚"
#~ msgid "Many-to-one"
#~ msgstr "many-to-one"
#~ msgid ""
#~ "An ordinary association to another persistent class is declared using a "
#~ "<literal>many-to-one 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 è¦ç´ を使ã£ã¦"
#~ "定義ã—ã¾ã™ã€‚リレーショナルモデルã¯å¤šå¯¾ä¸€é–¢é€£ã§ã™ã€‚ã¤ã¾ã‚Šã‚るテーブルã®å¤–部"
#~ "ã‚ーã¯ã€ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã¨ãªã‚‹ãƒ†ãƒ¼ãƒ–ルã®ä¸»ã‚ーカラムをå‚ç…§ã—ã¦ã„ã¾ã™ã€‚"
#~ msgid "One-to-one"
#~ msgstr "one-to-one"
#~ msgid "There are two varieties of one-to-one associations:"
#~ msgstr "一対一関連ã«ã¯2種類ã‚ã‚Šã¾ã™ï¼š"
#~ msgid "primary key associations"
#~ msgstr "主ã‚ー関連"
#~ msgid ""
#~ "Alternatively, a foreign key with a unique constraint, from "
#~ "<literal>Employee to Person , can be "
#~ "expressed as:"
#~ msgstr ""
#~ "ã‚‚ã†1ã¤ã®æ–¹æ³•ã¨ã—ã¦ã€ <literal>Employee ã‹ã‚‰ Person mapping:"
#~ msgstr ""
#~ "ãã—ã¦ã“ã®é–¢é€£ã¯ã€ä»¥ä¸‹ã®è¨˜è¿°ã‚’ <literal>Person ã®ãƒžãƒƒãƒ”ングã«è¿½"
#~ "åŠ ã™ã‚‹ã“ã¨ã§åŒæ–¹å‘ã«ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ï¼š"
#, fuzzy
#~ msgid "Component and dynamic-component"
#~ msgstr "component, dynamic-component"
#~ msgid "Subclass"
#~ msgstr "subclass"
#~ 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> element. The mapping "
#~ "at the start of the chapter would then be re-written as:"
#~ msgstr ""
#~ "ã“ã®ãƒžãƒƒãƒ”ング戦略ã«ã¯ã€è˜åˆ¥ã‚«ãƒ©ãƒ ã¯å¿…è¦ã‚ã‚Šã¾ã›ã‚“。ã—ã‹ã—å„サブクラス㯠"
#~ "<literal><key> è¦ç´ を使ã„ã€ã‚ªãƒ–ジェクトè˜åˆ¥åã‚’ä¿æŒã™ã‚‹"
#~ "テーブルカラムを定義ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。ã“ã®ç« ã®åˆã‚ã®ãƒžãƒƒãƒ”ングã¯ä»¥ä¸‹ã®"
#~ "よã†ã«æ›¸ãç›´ã›ã¾ã™ï¼š"
#~ msgid "Union-subclass"
#~ msgstr "union-subclass"
#~ msgid "Join"
#~ msgstr "join"
#~ msgid ""
#~ "Using the <literal><join> 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> è¦ç´ "
#~ "を使ã†ã“ã¨ã§ã€ï¼‘ã¤ã®ã‚¯ãƒ©ã‚¹ã®ãƒ—ãƒãƒ‘ティをã„ãã¤ã‚‚ã®ãƒ†ãƒ¼ãƒ–ルã«ãƒžãƒƒãƒ”ングã™ã‚‹"
#~ "ã“ã¨ãŒã§ãã¾ã™ã€‚"
#, fuzzy
#~ msgid "<literal>class"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid "<literal>binary"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid "<literal>text"
#~ msgstr "<literal>sequence-identity"
#, fuzzy
#~ msgid "<literal>clob, blob"
#~ msgstr "<literal>calendar, calendar_date"
#~ 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 マッピングã®ãƒ¡ã‚¿ãƒ‡ãƒ¼ã‚¿ã‚’定義ã™ã‚‹ä»£æ›¿"
#~ "方法ãŒã‚ã‚Šã¾ã™ã€‚"
#~ msgid "Using XDoclet markup"
#~ msgstr "XDoclet マークアップã®ä½¿ç”¨"
#~ msgid ""
#~ "Many Hibernate users prefer to embed mapping information directly in "
#~ "sourcecode using XDoclet <literal>@hibernate.tags. 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 class with XDoclet mappings:"
#~ msgstr ""
#~ "多ãã® Hibernate ユーザー㯠XDoclet ã® <literal>@hibernate.tags "
#~ "を使ã£ã¦ã€ã‚½ãƒ¼ã‚¹ã‚³ãƒ¼ãƒ‰å†…ã«ç›´æŽ¥ãƒžãƒƒãƒ”ãƒ³ã‚°æƒ…å ±ã‚’åŸ‹ã‚込むã“ã¨ã‚’好ã¿ã¾ã™ã€‚ã“ã‚Œ"
#~ "ã¯åŽ³å¯†ã«è¨€ãˆã° XDoclet ã®åˆ†é‡Žãªã®ã§ã€æœ¬ãƒ‰ã‚ュメントã§ã¯ã“ã®æ–¹æ³•ã‚’対象ã¨ã¯"
#~ "ã—ã¾ã›ã‚“。ã—ã‹ã— XDoclet を使ã£ãŸä»¥ä¸‹ã® <literal>Cat マッピング"
#~ "ã®ä¾‹ã‚’示ã—ã¾ã™ã€‚"
#~ msgid ""
#~ "See the Hibernate website for more examples of XDoclet and Hibernate."
#~ msgstr ""
#~ "Hibernate ã®ã‚¦ã‚§ãƒ–サイトã«ã¯ã€ XDoclet 㨠Hibernate ã«é–¢ã™ã‚‹ã‚µãƒ³ãƒ—ルãŒå¤šæ•°"
#~ "ã‚ã‚Šã¾ã™ã€‚"
#~ msgid "Using JDK 5.0 Annotations"
#~ msgstr "JDK 5.0 アノテーションã®ä½¿ç”¨"
#~ 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 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 ""
#~ "JDK5.0 ã§ã¯ã‚¿ã‚¤ãƒ—セーフã‹ã¤ã‚³ãƒ³ãƒ‘イル時ã«ãƒã‚§ãƒƒã‚¯ã§ãã‚‹ã€è¨€èªžãƒ¬ãƒ™ãƒ«ã® "
#~ "XDoclet スタイルã®ã‚¢ãƒŽãƒ†ãƒ¼ã‚·ãƒ§ãƒ³ã‚’å°Žå…¥ã—ã¾ã—ãŸã€‚ã“ã®ãƒ¡ã‚«ãƒ‹ã‚ºãƒ 㯠XDoclet "
#~ "ã®ã‚¢ãƒŽãƒ†ãƒ¼ã‚·ãƒ§ãƒ³ã‚ˆã‚Šã‚‚強力ã§ã€ãƒ„ールや IDE も多ããŒã‚µãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ã€‚例"
#~ "ãˆã° IntelliJ IDEA ã¯ã€ JDK5.0 ã«ã‚¢ãƒŽãƒ†ãƒ¼ã‚·ãƒ§ãƒ³ã®è‡ªå‹•è£œå®Œã¨æ§‹æ–‡ã®å¼·èª¿è¡¨ç¤º"
#~ "をサãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ã€‚ EJB 仕様 (JSR-220) ã®æ–°ã—ã„ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã¯ã€ã‚¨ãƒ³ãƒ†ã‚£"
#~ "ティ Bean ã«å¯¾ã™ã‚‹ä¸»è¦ãªãƒ¡ã‚¿ãƒ‡ãƒ¼ã‚¿ãƒ¡ã‚«ãƒ‹ã‚ºãƒ ã¨ã—㦠JDK5.0 ã®ã‚¢ãƒŽãƒ†ãƒ¼ã‚·ãƒ§ãƒ³"
#~ "を使用ã—ã¦ã„ã¾ã™ã€‚ Hibernate3 ã§ã¯ JSR-220 (永続化 API) ã® "
#~ "<literal>EntityManager を実装ã—ã€ãƒ¡ã‚¿ãƒ‡ãƒ¼ã‚¿ãƒžãƒƒãƒ”ングã«å¯¾ã™ã‚‹ã‚µ"
#~ "ãƒãƒ¼ãƒˆã¯ã€åˆ¥ãƒ€ã‚¦ãƒ³ãƒãƒ¼ãƒ‰ã® <emphasis>Hibernate Annotations パッ"
#~ "ケージã«ã‚ˆã‚Šåˆ©ç”¨å¯èƒ½ã§ã™ã€‚ã“れ㯠EJB3 (JSR-220) 㨠Hibernate3 ã®ãƒ¡ã‚¿ãƒ‡ãƒ¼ã‚¿"
#~ "ã‚’ã©ã¡ã‚‰ã‚‚サãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ã€‚"
#~ msgid "This is an example of a POJO class annotated as an EJB entity bean:"
#~ msgstr ""
#~ "以下㯠EJB ã®ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ Bean ã¨ã—ã¦æ³¨é‡ˆã•ã‚ŒãŸ POJO クラスã®ä¾‹ã§ã™:"
#~ 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 ã®ã‚¢ãƒŽãƒ†ãƒ¼"
#~ "ションモジュールをå‚ç…§ã—ã¦ãã ã•ã„。"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ 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 ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<composite-id>\n"
#~ " <key-property name=\"medicareNumber\"/>\n"
#~ " <key-property name=\"dependent\"/>\n"
#~ "</composite-id>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<composite-id class=\"MedicareId\" mapped=\"true\">\n"
#~ " <key-property name=\"medicareNumber\"/>\n"
#~ " <key-property name=\"dependent\"/>\n"
#~ "</composite-id>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" "
#~ "unique=\"true\"/>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<one-to-one name\"employee\" class=\"Employee\" property-ref=\"person"
#~ "\"/>"
#, 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"
#~ "}"
Other Hibernate examples (source code examples)
Here is a short list of links related to this Hibernate basic_mapping.po source code file: