⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 query_hql.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 5 页
字号:
#: query_hql.xml:186#, no-c-formatmsgid """HQL supports two forms of association joining: <literal>implicit</literal> ""and <literal>explicit</literal>."msgstr """HQLは2つの関連結合形式をサポートします:<literal>暗黙的</literal> と ""<literal>明示的</literal>。"#. Tag: para#: query_hql.xml:190#, no-c-formatmsgid """The queries shown in the previous section all use the <literal>explicit</""literal> form where the join keyword is explicitly used in the from clause. ""This is the recommended form."msgstr """これまでのセクションでお見せした使い方はすべて <literal>明示的な</literal> 形""式で、 from節で明示的にjoinキーワードを使っています。 この形式をおすすめしま""す。"#. Tag: para#: query_hql.xml:195#, no-c-formatmsgid """The <literal>implicit</literal> form does not use the join keyword. Instead, ""the associations are \"dereferenced\" using dot-notation. <literal>implicit</""literal> joins can appear in any of the HQL clauses. <literal>implicit</""literal> join result in inner joins in the resulting SQL statement."msgstr """<literal>暗黙的</literal> フォームは、joinキーワードを使いません。代わりに、""参照する関連に ドット表記を使います。<literal>暗黙的</literal> 結合は、さまざ""まなHQLに出てきます。 <literal>暗黙的</literal> 結合の結果は、SQLステートメン""トの内部結合結果です。"#. Tag: programlisting#: query_hql.xml:202#, no-c-formatmsgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"msgstr ""#. Tag: title#: query_hql.xml:206#, no-c-formatmsgid "Refering to identifier property"msgstr "Refering to identifier property"#. Tag: para#: query_hql.xml:208#, no-c-formatmsgid """There are, generally speaking, 2 ways to refer to an entity's identifier ""property:"msgstr """There are, generally speaking, 2 ways to refer to an entity's identifier ""property:"#. Tag: para#: query_hql.xml:213#, no-c-formatmsgid """The special property (lowercase) <literal>id</literal> may be used to ""reference the identifier property of an entity <emphasis>provided that ""entity does not define a non-identifier property named id</emphasis>."msgstr """The special property (lowercase) <literal>id</literal> may be used to ""reference the identifier property of an entity <emphasis>provided that ""entity does not define a non-identifier property named id</emphasis>."#. Tag: para#: query_hql.xml:220#, no-c-formatmsgid """If the entity defines a named identifier property, you may use that property ""name."msgstr """If the entity defines a named identifier property, you may use that property ""name."#. Tag: para#: query_hql.xml:226#, no-c-formatmsgid """References to composite identifier properties follow the same naming rules. ""If the entity has a non-identifier property named id, the composite ""identifier property can only be referenced by its defined named; otherwise, ""the special <literal>id</literal> property can be used to rerference the ""identifier property."msgstr """References to composite identifier properties follow the same naming rules. ""If the entity has a non-identifier property named id, the composite ""identifier property can only be referenced by its defined named; otherwise, ""the special <literal>id</literal> property can be used to rerference the ""identifier property."#. Tag: para#: query_hql.xml:233#, fuzzy, no-c-formatmsgid """Note: this has changed significantly starting in version 3.2.2. In previous ""versions, <literal>id</literal> <emphasis>always</emphasis> referred to the ""identifier property no matter what its actual name. A ramification of that ""decision was that non-identifier properties named <literal>id</literal> ""could never be referenced in Hibernate queries."msgstr """Note: this has changed significantly starting in version 3.2.2. In previous ""versions, <literal>id</literal><emphasis>always</emphasis> referred to the ""identifier property no matter what its actual name. A ramification of that ""decision was that non-identifier properties named <literal>id</literal> ""could never be referenced in Hibernate queries."#. Tag: title#: query_hql.xml:242#, no-c-formatmsgid "The select clause"msgstr "Select節"#. Tag: para#: query_hql.xml:244#, no-c-formatmsgid """The <literal>select</literal> clause picks which objects and properties to ""return in the query result set. Consider:"msgstr """<literal>select</literal> 節は以下のようにどのオブジェクトと属性をクエリリザ""ルトセットに返すかを選択します。:"#. Tag: programlisting#: query_hql.xml:249#, no-c-formatmsgid """<![CDATA[select mate\n""from Cat as cat\n""    inner join cat.mate as mate]]>"msgstr ""#. Tag: para#: query_hql.xml:251#, no-c-formatmsgid """The query will select <literal>mate</literal>s of other <literal>Cat</""literal>s. Actually, you may express this query more compactly as:"msgstr """上記のクエリは他の <literal>Cat</literal> の <literal>mate</literal> を選択し""ます。 実際には次のように、より簡潔に表現できます。:"#. Tag: programlisting#: query_hql.xml:256#, no-c-formatmsgid "<![CDATA[select cat.mate from Cat cat]]>"msgstr ""#. Tag: para#: query_hql.xml:258#, no-c-formatmsgid """Queries may return properties of any value type including properties of ""component type:"msgstr """クエリはコンポーネント型のプロパティを含む、あらゆる値型のプロパティも返せま""す。:"#. Tag: programlisting#: query_hql.xml:262#, no-c-formatmsgid """<![CDATA[select cat.name from DomesticCat cat\n""where cat.name like 'fri%']]>"msgstr ""#. Tag: programlisting#: query_hql.xml:264#, no-c-formatmsgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"msgstr ""#. Tag: para#: query_hql.xml:266#, no-c-formatmsgid """Queries may return multiple objects and/or properties as an array of type ""<literal>Object[]</literal>,"msgstr """クエリは複数のオブジェクトと(または)プロパティを <literal>Object[]</literal> ""型の配列として返せます。"#. Tag: programlisting#: query_hql.xml:271#, no-c-formatmsgid """<![CDATA[select mother, offspr, mate.name\n""from DomesticCat as mother\n""    inner join mother.mate as mate\n""    left outer join mother.kittens as offspr]]>"msgstr ""#. Tag: para#: query_hql.xml:273#, no-c-formatmsgid "or as a <literal>List</literal>,"msgstr "もしくは <literal>List</literal> として、"#. Tag: programlisting#: query_hql.xml:277#, no-c-formatmsgid """<![CDATA[select new list(mother, offspr, mate.name)\n""from DomesticCat as mother\n""    inner join mother.mate as mate\n""    left outer join mother.kittens as offspr]]>"msgstr ""#. Tag: para#: query_hql.xml:279#, no-c-formatmsgid "or as an actual typesafe Java object,"msgstr "または、タイプセーフなJavaオブジェクトを返せます。"#. Tag: programlisting#: query_hql.xml:283#, no-c-formatmsgid """<![CDATA[select new Family(mother, mate, offspr)\n""from DomesticCat as mother\n""    join mother.mate as mate\n""    left join mother.kittens as offspr]]>"msgstr ""#. Tag: para#: query_hql.xml:285#, no-c-formatmsgid """assuming that the class <literal>Family</literal> has an appropriate ""constructor."msgstr """あるいは <literal>Family</literal> クラスが適切なコンストラクタを持っていると""するならば、"#. Tag: para#: query_hql.xml:289#, no-c-formatmsgid """You may assign aliases to selected expressions using <literal>as</literal>:"msgstr "select節に <literal>as</literal> を使って別名をつけることもできます。"#. Tag: programlisting#: query_hql.xml:293#, no-c-formatmsgid """<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as ""n\n""from Cat cat]]>"msgstr ""#. Tag: para#: query_hql.xml:295#, no-c-formatmsgid """This is most useful when used together with <literal>select new map</""literal>:"msgstr "<literal>select new map</literal> と一緒に使うときに最も役立ちます:"#. Tag: programlisting#: query_hql.xml:299#, no-c-formatmsgid """<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, ""count(*) as n )\n""from Cat cat]]>"msgstr ""#. Tag: para#: query_hql.xml:301#, no-c-formatmsgid """This query returns a <literal>Map</literal> from aliases to selected values."msgstr "このクエリは別名からselectした値へ <literal>Map</literal> を返します。"#. Tag: title#: query_hql.xml:308#, no-c-formatmsgid "Aggregate functions"msgstr "集約関数"#. Tag: para#: query_hql.xml:310#, no-c-formatmsgid """HQL queries may even return the results of aggregate functions on properties:"msgstr "HQLのクエリはプロパティの集約関数の結果も返せます:"#. Tag: programlisting#: query_hql.xml:314#, no-c-formatmsgid """<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count""(cat)\n""from Cat cat]]>"msgstr ""#. Tag: para#: query_hql.xml:325#, no-c-formatmsgid "The supported aggregate functions are"msgstr "サポートしている集約関数は以下のものです。"#. Tag: literal#: query_hql.xml:332#, no-c-formatmsgid "avg(...), sum(...), min(...), max(...)"msgstr "avg(...), sum(...), min(...), max(...)"#. Tag: literal#: query_hql.xml:337#, no-c-formatmsgid "count(*)"msgstr "count(*)"#. Tag: literal#: query_hql.xml:342#, no-c-formatmsgid "count(...), count(distinct ...), count(all...)"msgstr "count(...), count(distinct ...), count(all...)"#. Tag: para#: query_hql.xml:347#, no-c-formatmsgid """You may use arithmetic operators, concatenation, and recognized SQL ""functions in the select clause:"msgstr """select節において算術操作、連結と承認されたSQL関数を使うことができます。"#. Tag: programlisting#: query_hql.xml:352#, no-c-formatmsgid """<![CDATA[select cat.weight + sum(kitten.weight)\n""from Cat cat\n""    join cat.kittens kitten\n""group by cat.id, cat.weight]]>"msgstr ""#. Tag: programlisting#: query_hql.xml:354#, no-c-formatmsgid """<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"msgstr ""#. Tag: para#: query_hql.xml:356#, no-c-formatmsgid """The <literal>distinct</literal> and <literal>all</literal> keywords may be ""used and have the same semantics as in SQL."msgstr """SQLと同じ意味を持つ <literal>distinct</literal> と <literal>all</literal> ""キーワードを使うことができます。"#. Tag: programlisting#: query_hql.xml:361#, no-c-formatmsgid """<![CDATA[select distinct cat.name from Cat cat\n""\n""select count(distinct cat.name), count(cat) from Cat cat]]>"msgstr ""#. Tag: title#: query_hql.xml:366#, no-c-formatmsgid "Polymorphic queries"msgstr "ポリモーフィックなクエリ"#. Tag: para#: query_hql.xml:368#, no-c-formatmsgid "A query like:"msgstr "次のようなクエリ:"#. Tag: para#: query_hql.xml:374#, no-c-formatmsgid """returns instances not only of <literal>Cat</literal>, but also of subclasses ""like <literal>DomesticCat</literal>. Hibernate queries may name ""<emphasis>any</emphasis> Java class or interface in the <literal>from</""literal> clause. The query will return instances of all persistent classes ""that extend that class or implement the interface. The following query would ""return all persistent objects:"msgstr """<literal>Cat</literal> インスタンスだけではなく、<literal>DomesticCat</""literal> のようなサブクラスも返されます。Hibernateクエリは <emphasis>どんな</""emphasis> Javaクラスやインターフェイスも <literal>from</literal> 節に入れるこ"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -