📄 basic_mapping.po
字号:
#. Tag: para#: basic_mapping.xml:299#, no-c-formatmsgid """<literal>batch-size</literal> (optional, defaults to <literal>1</literal>) ""specify a \"batch size\" for fetching instances of this class by identifier."msgstr """<literal>batch-size</literal> (オプション, デフォルトは <literal>1</""literal> ): 識別子でこのクラスのインスタンスを復元するときの「バッチサイ""ズ」を指定します。"#. Tag: para#: basic_mapping.xml:305#, no-c-formatmsgid """<literal>optimistic-lock</literal> (optional, defaults to <literal>version</""literal>): Determines the optimistic locking strategy."msgstr """<literal>optimistic-lock</literal> (オプション,デフォルトは ""<literal>version</literal> ): 楽観ロック戦略を決定します。"#. Tag: para#: basic_mapping.xml:311#, no-c-formatmsgid """<literal>lazy</literal> (optional): Lazy fetching may be completely disabled ""by setting <literal>lazy=\"false\"</literal>."msgstr """<literal>lazy</literal> (オプション): <literal>lazy=\"false\"</literal> と""設定することで、 遅延フェッチができなくなります。"#. Tag: para#: basic_mapping.xml:317#, no-c-formatmsgid """<literal>entity-name</literal> (optional, defaults to the class name): ""Hibernate3 allows a class to be mapped multiple times (to different tables, ""potentially), and 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</literal> (オプション、デフォルトはクラス名): ""Hibernate3ではクラスが複数回マッピングでき(場合によっては違うテーブルに対し""ても)、 JavaレベルでMapやXMLで表現されるエンティティマッピングが可能です。 ""これらの場合、エンティティに対して任意の名前を、明示的に付けなくてはなりませ""ん。 詳しくは <xref linkend=\"persistent-classes-dynamicmodels\"/> と <xref ""linkend=\"xml\"/> を参照してください。"#. Tag: para#: basic_mapping.xml:327#, no-c-formatmsgid """<literal>check</literal> (optional): A SQL expression used to generate a ""multi-row <emphasis>check</emphasis> constraint for automatic schema ""generation."msgstr """<literal>check</literal> (オプション):自動的にスキーマを生成するために、 ""複数行の <emphasis>check</emphasis> 制約を生成するSQL式。"#. Tag: para#: basic_mapping.xml:333#, no-c-formatmsgid """<literal>rowid</literal> (optional): Hibernate can use so called ROWIDs on ""databases which support. E.g. on Oracle, Hibernate can use the ""<literal>rowid</literal> extra column for fast updates if you set this ""option to <literal>rowid</literal>. A ROWID is an implementation detail and ""represents the physical location of a stored tuple."msgstr """<literal>rowid</literal> (オプション):Hibernateは、それをサポートしている""データベースでROWIDと 呼ばれるものを使うことができます。 例えばOracleを使って""いるとき、このオプションに <literal>rowid</literal> を設定すれば、 Hiberante""はupdateを高速化するために <literal>rowid</literal> という特別なカラムを使う""ことができます。 ROWIDは詳細な実装であり、保存されたタプルの物理的な位置を表""しています。"#. Tag: para#: basic_mapping.xml:341#, no-c-formatmsgid """<literal>subselect</literal> (optional): Maps an immutable and read-only ""entity to a database subselect. Useful if you want to have a view instead of ""a base table, but don't. See below for more information."msgstr """<literal>subselect</literal> (オプション):不変かつ読み取り専用であるエン""ティティを データベースの副問合せ(subselect)にマッピングします。 もし元の""テーブルの代わりにビューを持ちたければ有用ですが、 そうでないのなら有用ではあ""りません。より詳しい情報は下記を参照してください。"#. Tag: para#: basic_mapping.xml:348#, no-c-formatmsgid """<literal>abstract</literal> (optional): Used to mark abstract superclasses ""in <literal><union-subclass></literal> hierarchies."msgstr """<literal>abstract</literal> (オプション): <literal><union-subclass>""</literal> 階層内の抽象スーパークラスにマークするために使います。"#. Tag: para#: basic_mapping.xml:356#, no-c-formatmsgid """It is perfectly acceptable for the named persistent class to be an ""interface. You would then declare implementing classes of that interface ""using the <literal><subclass></literal> element. You may persist any ""<emphasis>static</emphasis> inner class. You should specify the class name ""using the standard form ie. <literal>eg.Foo$Bar</literal>."msgstr """永続クラスの名前にインターフェイスを指定してもまったく問題ありません。 そのと""きは <literal><subclass></literal> 要素を使って、 そのインターフェイス""を実装するクラスを定義してください。 <emphasis>static</emphasis> な内部クラス""でも永続化できます。 そのときは標準形式、例えば <literal>eg.Foo$Bar</""literal> を使ってクラス名を指定してください。"#. Tag: para#: basic_mapping.xml:363#, no-c-formatmsgid """Immutable classes, <literal>mutable=\"false\"</literal>, may not be updated ""or deleted by the application. This allows Hibernate to make some minor ""performance optimizations."msgstr """<literal>mutable=\"false\"</literal> 指定をした不変クラスは、 アプリケーショ""ンによる更新や削除が出来ないことがあります。 これにより、Hibernateがパフォー""マンスを少し改善します。"#. Tag: para#: basic_mapping.xml:368#, no-c-formatmsgid """The optional <literal>proxy</literal> attribute enables lazy initialization ""of persistent instances of the class. Hibernate will initially return CGLIB ""proxies which implement the named interface. The actual persistent object ""will be loaded when a method of the proxy is invoked. See \"Initializing ""collections and proxies\" below."msgstr """オプションの <literal>proxy</literal> 属性により、クラスの永続インスタンスの""遅延初期化が可能になります。 Hibernateは最初に、指定したインターフェイスを実""装したCGLIBプロキシを返します。 実際の永続オブジェクトはプロキシのメソッドを""呼び出すときにロードします。 以下の「遅延初期化のためのプロキシ」を参照してく""ださい。"#. Tag: para#: basic_mapping.xml:375#, no-c-formatmsgid """<emphasis>Implicit</emphasis> polymorphism means that instances of the class ""will be returned by a query that names any superclass or implemented ""interface or the class and that instances of any subclass of the class will ""be returned by a query that names the class itself. <emphasis>Explicit</""emphasis> polymorphism means that class instances will be returned only by ""queries that explicitly name that class and that queries that name the class ""will return only instances of subclasses mapped inside this <literal><""class></literal> declaration as a <literal><subclass></literal> or ""<literal><joined-subclass></literal>. For most purposes the default, ""<literal>polymorphism=\"implicit\"</literal>, is appropriate. Explicit ""polymorphism is useful when two different classes are mapped to the same ""table (this allows a \"lightweight\" class that contains a subset of the ""table columns)."msgstr """<emphasis>暗黙的</emphasis> ポリモーフィズムとは、次の二つを意味しています。 ""一つはクラスのインスタンスが、スーパークラスや実装したインターフェイス、また""そのクラスを指定するクエリによって返されることで、 もう一つはそのクラスのサブ""クラスのインスタンスが、そのクラス自身を指定したクエリによって返されることで""す。 また、<emphasis>明示的</emphasis> ポリモーフィズムとは、次の二つを意味し""ています。 一つはクラスのインスタンスが、そのクラスを明示的に指定したクエリに""よってのみ返されることで、 もう一つはクラスを指定したクエリが、<literal><""class></literal> 要素の中で <literal><subclass></literal> や ""<literal><joined-subclass></literal> とマッピングされているサブクラスの""インスタンスだけを返すことです。 ほとんどの用途ではデフォルトの ""<literal>polymorphism=\"implicit\"</literal> が適切です。 明示的なポリモー""フィズムは、2つの違ったクラスが同じテーブルにマッピングされているときに有用で""す (これによってテーブルカラムのサブセットを含む、「軽量な」クラスが可能にな""ります)。"#. Tag: para#: basic_mapping.xml:387#, no-c-formatmsgid """The <literal>persister</literal> attribute lets you customize the ""persistence strategy used for the class. You may, for example, specify your ""own subclass of <literal>org.hibernate.persister.EntityPersister</literal> ""or you might even provide a completely new implementation of the interface ""<literal>org.hibernate.persister.ClassPersister</literal> that implements ""persistence via, for example, stored procedure calls, serialization to flat ""files or LDAP. See <literal>org.hibernate.test.CustomPersister</literal> for ""a simple example (of \"persistence\" to a <literal>Hashtable</literal>)."msgstr """<literal>persister</literal> 属性を指定することで、クラスの永続化戦略をカスタ""マイズできます。 例えば <literal>org.hibernate.persister.EntityPersister</""literal> 自身のサブクラスを指定したり、 また例えばストアドプロシージャコー""ル、フラットファイルへシリアライズ、 LDAPなどを通した永続性を実装する ""<literal>org.hibernate.persister.ClassPersister</literal> インターフェイスの""完全に新しい実装を提供できます。簡単な例として <literal>org.hibernate.test.""CustomPersister</literal> を見てください(これは <literal>Hashtable</""literal> の「永続化」です)。"#. Tag: para#: basic_mapping.xml:398#, no-c-formatmsgid """Note that the <literal>dynamic-update</literal> and <literal>dynamic-insert</""literal> settings are not inherited by subclasses and so may also be ""specified on the <literal><subclass></literal> or <literal><joined-""subclass></literal> elements. These settings may increase performance in ""some cases, but might actually decrease performance in others. Use ""judiciously."msgstr """<literal>dynamic-update</literal> と <literal>dynamic-insert</literal> の設定""はサブクラスに継承されません。 そのため <literal><subclass></literal> ""や <literal><joined-subclass></literal> 要素を指定することも出来ます。 ""これらの設定はパフォーマンスを向上させる事もありますが、落とすこともあります""ので、慎重に使用してください。"#. Tag: para#: basic_mapping.xml:406#, no-c-formatmsgid """Use of <literal>select-before-update</literal> will usually decrease ""performance. It is very useful to prevent a database update trigger being ""called unnecessarily if you reattach a graph of detached instances to a ""<literal>Session</literal>."msgstr """<literal>select-before-update</literal> の使用は通常パフォーマンスを落としま""す。 もし <literal>Session</literal> へ分離インスタンスのグラフを再追加するな""ら、 データベース更新のトリガを不必要に呼び出すのを避けるという点で、非常に有""用です。"#. Tag: para#: basic_mapping.xml:412#, no-c-formatmsgid """If you enable <literal>dynamic-update</literal>, you will have a choice of ""optimistic locking strategies:"msgstr """<literal>dynamic-update</literal> を有効にすれば、楽観ロック戦略を選ぶことに""なります。"#. Tag: para#: basic_mapping.xml:418#, no-c-formatmsgid "<literal>version</literal> check the version/timestamp columns"msgstr """<literal>version</literal> バージョン/タイムスタンプカラムをチェックします"#. Tag: para#: basic_mapping.xml:423#, no-c-formatmsgid "<literal>all</literal> check all columns"msgstr "<literal>all</literal> すべてのカラムをチェックします。"#. Tag: para#: basic_mapping.xml:428#, no-c-formatmsgid """<literal>dirty</literal> check the changed columns, allowing some concurrent ""updates"msgstr """<literal>dirty</literal> 変更したカラムをチェックし、同時更新できるようにしま""す。"#. Tag: para#: basic_mapping.xml:433#, no-c-formatmsgid "<literal>none</literal> do not use optimistic locking"msgstr "<literal>none</literal> 楽観ロックを使用しません"#. Tag: para#: basic_mapping.xml:438#, no-c-formatmsgid """We <emphasis>very</emphasis> strongly recommend that you use version/""timestamp columns for optimistic locking with Hibernate. This is the optimal ""strategy with respect to performance and is the only strategy that correctly ""handles modifications made to detached instances (ie. when <literal>Session.""merge()</literal> is used)."msgstr """Hibernateで楽観的ロック戦略を使うなら、バージョン/タイムスタンプカラムを使う""ことを <emphasis> 非常に</emphasis> 強くお勧めします。 楽観的ロックはパフォー""マンスの観点からも最適であり、さらに分離インスタンスへの修正 (つまり ""<literal>Session.marge()</literal> が使われるとき) を正確に扱うことのできる""唯一の戦略でもあります。"#. Tag: para#: basic_mapping.xml:445#, no-c-formatmsgid """There is no difference between a view and a base table for a Hibernate ""mapping, as expected this is transparent at the database level (note that ""some DBMS don't support views properly, especially with updates). Sometimes ""you want to use a view, but can't create one in the database (ie. with a ""legacy schema). In this case, you can map an immutable and read-only entity ""to a given SQL subselect expression:"msgstr """Hibernateのマッピングにとってビューと普通のテーブルの間に違いはなく、 データ""ベースレベルでは透過的です (ただしビューを完全にはサポートしていないDBMSもあ""ります。 特に、更新のあるビューに対してはそうです)。 ビューを使いたくても、""データベースで作成できないことがあります (例えば、レガシースキーマの場""合)。 この場合には、不変かつ読み取り専用のエンティティに与えられたSQLの副問""合せ文をマップできます。"#. Tag: programlisting
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -