|
Hibernate example source code file (query_hql.po)
This example Hibernate source code file (query_hql.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 query_hql.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: 2010-02-11T05:38:15\n"
"PO-Revision-Date: 2010-01-13 17:08+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
#, no-c-format
msgid "HQL: The Hibernate Query Language"
msgstr "HQL: Hibernate クエリ言語"
#. Tag: para
#, no-c-format
msgid ""
"Hibernate uses a powerful query language (HQL) that is similar in appearance "
"to SQL. Compared with SQL, however, HQL is fully object-oriented and "
"understands notions like inheritance, polymorphism and association."
msgstr ""
"Hibernate 㯠SQL ã«éžå¸¸ã«ã‚ˆã似㟠(æ„図的ã«ä¼¼ã›ãŸ) 強力ãªå•ã„åˆã‚ã›è¨€èªžã‚’å‚™ãˆ"
"ã¦ã„ã¾ã™ã€‚ã—ã‹ã— SQL ã«ä¼¼ãŸæ§‹æ–‡ã«æƒ‘ã‚ã•ã‚Œãªã„ã§ãã ã•ã„。 HQL ã¯å®Œå…¨ã«ã‚ªãƒ–"
"ジェクト指å‘ã§ã‚ã‚Šã€ç¶™æ‰¿ã€ãƒãƒªãƒ¢ãƒ¼ãƒ•ã‚£ã‚ºãƒ ã€é–¢é€£ã¨ã„ã£ãŸæ¦‚念をç†è§£ã—ã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Case Sensitivity"
msgstr "大文å—ã¨å°æ–‡å—ã®åŒºåˆ¥"
#. Tag: para
#, no-c-format
msgid ""
"With the exception of names of Java classes and properties, queries are case-"
"insensitive. So <literal>SeLeCT is the same as sELEctSELECT, but org."
"hibernate.eg.FOO</literal> is not org.hibernate.eg.Foo, "
"and <literal>foo.barSet is not foo.BARSET."
msgstr ""
"クエリ㯠Java ã®ã‚¯ãƒ©ã‚¹åã¨ãƒ—ãƒãƒ‘ティåを除ã„ã¦å¤§æ–‡å—ã€å°æ–‡å—を区別ã—ã¾ã›ã‚“。"
"従ã£ã¦ <literal>SeLeCT 㯠sELEct ã¨åŒã˜ã§ã€ã‹ã¤ "
"<literal>SELECT ã¨ã‚‚åŒã˜ã§ã™ãŒ org.hibernate.eg.FOOorg.hibernate.eg.Foo ã¨ã¯é•ã„ã€ã‹ã¤ "
"<literal>foo.barSet 㯠foo.BARSET ã¨ã‚‚é•ã„ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"This manual uses lowercase HQL keywords. Some users find queries with "
"uppercase keywords more readable, but this convention is unsuitable for "
"queries embedded in Java code."
msgstr ""
"ã“ã®ãƒžãƒ‹ãƒ¥ã‚¢ãƒ«ã§ã¯å°æ–‡å—ã® HQL ã‚ーワードを使用ã—ã¾ã™ã€‚大文å—ã®ã‚ーワードã®ã‚¯"
"エリã®æ–¹ãŒèªã¿ã‚„ã™ã„ã¨æ„Ÿã˜ã‚‹ãƒ¦ãƒ¼ã‚¶ãƒ¼ã‚‚ã„ã‚‹ã¨æ€ã„ã¾ã™ã€‚ã§ã™ãŒã€ Java コード内"
"ã«åŸ‹ã‚è¾¼ã¾ã‚ŒãŸã¨ãã«ã¯è¦‹ã¥ã‚‰ã„ã¨æ€ã„ã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "The from clause"
msgstr "from 節"
#. Tag: para
#, no-c-format
msgid "The simplest possible Hibernate query is of the form:"
msgstr "ã‚‚ã£ã¨ã‚‚å˜ç´”㪠Hibernate クエリã¯æ¬¡ã®å½¢å¼ã§ã™:"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"This returns all instances of the class <literal>eg.Cat. You do "
"not usually need to qualify the class name, since <literal>auto-import  クラスã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã‚’ã™ã¹ã¦è¿”ã—ã¾"
"ã™ã€‚å¿…ãšã—もクラスåを修飾ã™ã‚‹ï¼ˆã‚¯ãƒ©ã‚¹ã«ãƒ‘ッケージåを付ã‘る)必è¦ã¯ã‚ã‚Šã¾ã›"
"ん。ã¨ã„ã†ã®ã‚‚〠<literal>auto-import ãŒãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã«ãªã£ã¦ã„ã‚‹ã‹ã‚‰"
"ã§ã™ã€‚ãã®ãŸã‚ã»ã¨ã‚“ã©ã®å ´åˆã€ã“ã®ã‚ˆã†ã«æ›¸ãã ã‘ã§å分ã§ã™:"
#. Tag: para
#, no-c-format
msgid ""
"In order to refer to the <literal>Cat in other parts of the query, "
"you will need to assign an <emphasis>alias. For example:"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"This query assigns the alias <literal>cat to Cat keyword is optional. You could also write:"
msgstr ""
"ã“ã®ã‚¯ã‚¨ãƒªã§ã¯ <literal>Cat インスタンス㫠cat "
"ã¨ã„ã†åˆ¥åを付ã‘ã¦ã„ã¾ã™ã€‚ãã®ãŸã‚ã€å¾Œã§ã“ã®ã‚¯ã‚¨ãƒªå†…ã§ã€ã“ã®åˆ¥åを使ã†ã“ã¨ãŒ"
"ã§ãã¾ã™ã€‚ <literal>as ã‚ーワードã¯ã‚ªãƒ—ションã§ã™ã€‚ã¤ã¾ã‚Šã“ã®ã‚ˆã†ã«"
"書ãã“ã¨ã‚‚ã§ãã¾ã™ï¼š"
#. Tag: para
#, no-c-format
msgid ""
"Multiple classes can appear, resulting in a cartesian product or \"cross\" "
"join."
msgstr ""
"ç›´ç©ã€ã‚ã‚‹ã„ã¯ã€Œã‚¯ãƒã‚¹ã€çµåˆã«ã‚ˆã£ã¦å¤šæ•°ã®ã‚¯ãƒ©ã‚¹ãŒå‡ºç¾ã™ã‚‹ã“ã¨ã‚‚ã‚ã‚Šã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"It is good practice to name query aliases using an initial lowercase as this "
"is consistent with Java naming standards for local variables (e.g. "
"<literal>domesticCat)."
msgstr ""
"ãƒãƒ¼ã‚«ãƒ«å¤‰æ•°ã® Java ã®ãƒãƒ¼ãƒŸãƒ³ã‚°åŸºæº–ã¨ä¸€è‡´ã—ãŸã€é æ–‡å—ã«å°æ–‡å—を使ã£ãŸã‚¯ã‚¨ãƒª"
"ã®åˆ¥åを付ã‘ã‚‹ã“ã¨ã¯ã„ã„ç¿’æ…£ã§ã™ (例ãˆã° <literal>domesticCat)。"
#. Tag: title
#, no-c-format
msgid "Associations and joins"
msgstr "関連ã¨çµåˆ"
#. Tag: para
#, no-c-format
msgid ""
"You can also assign aliases to associated entities or to elements of a "
"collection of values using a <literal>join. For example:"
msgstr ""
"関連ã™ã‚‹ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã‚ã‚‹ã„ã¯å€¤ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã®è¦ç´ ã«ã‚‚〠<literal>çµåˆ"
msgstr "<literal>inner join"
#. Tag: para
#, no-c-format
msgid "<literal>left outer join"
msgstr "<literal>left outer join"
#. Tag: para
#, no-c-format
msgid "<literal>right outer join"
msgstr "<literal>right outer join"
#. Tag: para
#, no-c-format
msgid "<literal>full join (not usually useful)"
msgstr "<literal>full join (ãŸã„ã¦ã„ã®å ´åˆä½¿ã„ã¥ã‚‰ã„)"
#. Tag: para
#, no-c-format
msgid ""
"The <literal>inner join, left outer join and "
"<literal>right outer join constructs may be abbreviated."
msgstr ""
"<literal>inner join〠left outer join〠"
"<literal>right outer join ã«ã¯çœç•¥å½¢ã‚’使ã†ã“ã¨ã‚‚ã§ãã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"You may supply extra join conditions using the HQL <literal>with "
"keyword."
msgstr ""
"HQL ã® <literal>with ã‚ーワードを使ã†ã¨ã€çµåˆæ¡ä»¶ã‚’付ã‘åŠ ãˆã‚‹ã“ã¨ãŒ"
"ã§ãã¾ã™ã€‚"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"A \"fetch\" join allows associations or collections of values to be "
"initialized along with their parent objects using a single select. This is "
"particularly useful in the case of a collection. It effectively overrides "
"the outer join and lazy declarations of the mapping file for associations "
"and collections. See <xref linkend=\"performance-fetching\" /> for more "
"information."
msgstr ""
"åŠ ãˆã¦ã€ã€Œãƒ•ã‚§ãƒƒãƒã€çµåˆã¯é–¢é€£ã‚„値ã®ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’親オブジェクトã¨ä¸€ç·’ã«1度"
"ã® select å¥ã§åˆæœŸåŒ–ã—ã¾ã™ã€‚ã“ã‚Œã¯ç‰¹ã«ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã®å ´åˆã«æœ‰ç”¨ã§ã™ã€‚ã“ã‚Œã¯å®Ÿ"
"質上ã€é–¢é€£ã¨ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã«å¯¾ã™ã‚‹ãƒžãƒƒãƒ”ング定義ファイルã®å¤–部çµåˆã¨ lazy åˆæœŸ"
"化ã®å®šç¾©ã‚’上書ãã™ã‚‹ã“ã¨ã«ãªã‚Šã¾ã™ã€‚ <xref linkend=\"performance-fetching\"/"
"> ã«ã‚ˆã‚Šå¤šãã®æƒ…å ±ãŒã‚ã‚Šã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"A fetch join does not usually need to assign an alias, because the "
"associated objects should not be used in the <literal>where clause "
"(or any other clause). The associated objects are also not returned directly "
"in the query results. Instead, they may be accessed via the parent object. "
"The only reason you might need an alias is if you are recursively join "
"fetching a further collection:"
msgstr ""
"çµåˆã«ã‚ˆã‚‹ãƒ•ã‚§ãƒƒãƒã¯é–¢é€£ã™ã‚‹ã‚ªãƒ–ジェクト㌠<literal>where 節 (ã¾ãŸ"
"ã¯ä»–ã®ã©ã‚“ãªç¯€ã§ã‚‚) ã§ä½¿ã‚ã‚Œã¦ã¯ãªã‚‰ãªã„ã®ã§ã€é€šå¸¸åˆ¥åを割り当ã¦ã‚‹å¿…è¦ãŒã‚ã‚Š"
"ã¾ã›ã‚“。ã¾ãŸé–¢é€£ã‚ªãƒ–ジェクトã¯å•ã„åˆã‚ã›çµæžœã¨ã—ã¦ç›´æŽ¥è¿”ã•ã‚Œã¾ã›ã‚“。代ã‚ã‚Šã«"
"親オブジェクトを通ã—ã¦ã‚¢ã‚¯ã‚»ã‚¹ã§ãã¾ã™ã€‚コレクションをå†å¸°çš„ã«çµåˆãƒ•ã‚§ãƒƒãƒã™"
"ã‚‹å ´åˆã®ã¿ã€åˆ¥åãŒå¿…è¦ã«ãªã‚Šã¾ã™:"
#. Tag: para
#, no-c-format
msgid ""
"The <literal>fetch construct cannot be used in queries called "
"using <literal>iterate() (though scroll() can "
"be used). <literal>Fetch should be used together with "
"<literal>setMaxResults() or setFirstResult(), "
"as these operations are based on the result rows which usually contain "
"duplicates for eager collection fetching, hence, the number of rows is not "
"what you would expect. <literal>Fetch should also not be used "
"together with impromptu <literal>with condition. It is possible to "
"create a cartesian product by join fetching more than one collection in a "
"query, so take care in this case. Join fetching multiple collection roles "
"can produce unexpected results for bag mappings, so user discretion is "
"advised when formulating queries in this case. Finally, note that "
"<literal>full join fetch and right join fetch "
"are not meaningful."
msgstr ""
"<literal>fetch 構文㯠iterate() を使ã£ãŸã‚¯ã‚¨ãƒªå‘¼"
"ã³å‡ºã—ã§ä½¿ç”¨ã§ããªã„ã“ã¨ã«æ³¨æ„ã—ã¦ãã ã•ã„ (一方㧠<literal>scroll() 㯠setMaxResults() ã‚„ "
"<literal>setFirstResult() ã¨ä¸€ç·’ã«ä½¿ç”¨ã™ã¹ãã§ã¯ã‚ã‚Šã¾ã›ã‚“。通常 "
"eager ãªã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ãƒ•ã‚§ãƒƒãƒã‚’ã™ã‚‹ã¨é‡è¤‡ãŒå‡ºã¦ã—ã¾ã†ãŸã‚ã€ã‚ãªãŸãŒæœŸå¾…ã™ã‚‹ã‚ˆ"
"ã†ãªè¡Œæ•°ã«ã¯ãªã‚‰ãªã„ã®ã§ã™ã€‚ãã—ã¦ã¾ãŸ <literal>fetch ã¯ã€ã‚¢ãƒ‰ãƒ›ãƒƒ"
"ク㪠<literal>with æ¡ä»¶ã‚’一緒ã«ä½¿ã†ã“ã¨ã‚‚ã§ãã¾ã›ã‚“。一ã¤ã®ã‚¯ã‚¨ãƒªã§"
"複数ã®ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’çµåˆãƒ•ã‚§ãƒƒãƒã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šç›´ç©ã‚’作æˆã§ãã‚‹ã®ã§ã€ã“ã®å ´åˆ"
"注æ„ã—ã¦ãã ã•ã„。ã¾ãŸã€è¤‡æ•°ã®ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã«å¯¾ã™ã‚‹çµåˆãƒ•ã‚§ãƒƒãƒã¯ bag マッピン"
"ã‚°ã«å¯¾ã—ã¦äºˆæœŸã›ã¬çµæžœã‚’ã‚‚ãŸã‚‰ã™ã“ã¨ãŒã‚ã‚‹ã®ã§ã€ã“ã®å ´åˆã®ã‚¯ã‚¨ãƒªã®ä½œæˆã«ã¯æ³¨"
"æ„ã—ã¦ãã ã•ã„。最後㫠<literal>全外部çµåˆã«ã‚ˆã‚‹ãƒ•ã‚§ãƒƒãƒ 㨠"
"<literal>å³å¤–部çµåˆã«ã‚ˆã‚‹ãƒ•ã‚§ãƒƒãƒ ã¯æœ‰ç”¨ã§ã¯ãªã„ã“ã¨ã«æ³¨æ„ã—ã¦ãã "
"ã•ã„。"
#. Tag: para
#, no-c-format
msgid ""
"If you are using property-level lazy fetching (with bytecode "
"instrumentation), it is possible to force Hibernate to fetch the lazy "
"properties in the first query immediately using <literal>fetch all "
"properties</literal>."
msgstr ""
"ã‚‚ã—プãƒãƒ‘ティレベルã®é…延フェッãƒã‚’使ã†å ´åˆï¼ˆå†…部的ã«ãƒã‚¤ãƒˆã‚³ãƒ¼ãƒ‰å‡¦ç†ã‚’ã™ã‚‹"
"å ´åˆï¼‰ã€ <literal>fetch all properties を使ã†ã“ã¨ã§ Hibernate ã«é…"
"延プãƒãƒ‘ティを速やã‹ã«ï¼ˆæœ€åˆã®ã‚¯ã‚¨ãƒªã§ï¼‰ãƒ•ã‚§ãƒƒãƒã•ã›ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Forms of join syntax"
msgstr "çµåˆæ§‹æ–‡ã®å½¢å¼"
#. Tag: para
#, no-c-format
msgid ""
"HQL supports two forms of association joining: <literal>implicit "
"and <literal>explicit."
msgstr ""
"HQL ã¯ï¼’ã¤ã®é–¢é€£çµåˆå½¢å¼ã‚’サãƒãƒ¼ãƒˆã—ã¾ã™ï¼š <literal>暗黙的 㨠"
"<literal>明示的。"
#. Tag: para
#, no-c-format
msgid ""
"The queries shown in the previous section all use the <literal>explicit å½¢"
"å¼ã§ã€ from 節ã§æ˜Žç¤ºçš„ã« join ã‚ーワードを使ã£ã¦ã„ã¾ã™ã€‚ã“ã®å½¢å¼ã‚’ãŠã™ã™ã‚ã—"
"ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"The <literal>implicit form does not use the join keyword. Instead, "
"the associations are \"dereferenced\" using dot-notation. <literal>implicitimplicit フォームã¯ã€ join ã‚ーワードを使ã„ã¾ã›ã‚“。代ã‚ã‚Š"
"ã«ã€å‚ç…§ã™ã‚‹é–¢é€£ã«ãƒ‰ãƒƒãƒˆè¡¨è¨˜ã‚’使ã„ã¾ã™ã€‚ <literal>暗黙的 çµåˆã¯ã€ã•"
"ã¾ã–ã¾ãª HQL ã«å‡ºã¦ãã¾ã™ã€‚ <literal>暗黙的 çµåˆã®çµæžœã¯ã€ SQL ス"
"テートメントã®å†…部çµåˆçµæžœã§ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Referring to identifier property"
msgstr "è˜åˆ¥åプãƒãƒ‘ティã®å‚ç…§"
#. Tag: para
#, no-c-format
msgid "There are 2 ways to refer to an entity's identifier property:"
msgstr "エンティティã®è˜åˆ¥åプãƒãƒ‘ティã¯ã€ä¸€èˆ¬çš„ã«2ã¤ã®æ–¹æ³•ã§å‚ç…§ã•ã‚Œã¾ã™:"
#. Tag: para
#, no-c-format
msgid ""
"The special property (lowercase) <literal>id may be used to "
"reference the identifier property of an entity <emphasis>provided that the "
"entity does not define a non-identifier property named id</emphasis>."
msgstr ""
"特別ãªãƒ—ãƒãƒ‘ティ (å°æ–‡å—) <literal>id ã¯ã€ id ã¨å付ã‘ら"
"ã‚ŒãŸéžè˜åˆ¥åプãƒãƒ‘ティを定義ã—ãªã„エンティティを与ãˆã‚‰ã‚ŒãŸ</emphasis> エン"
"ティティã®è˜åˆ¥åプãƒãƒ‘ティをå‚ç…§ã™ã‚‹ã®ã«ä½¿ç”¨ã•ã‚Œã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"If the entity defines a named identifier property, you can use that property "
"name."
msgstr ""
"ã‚‚ã—エンティティãŒå付ã‘られãŸè˜åˆ¥åプãƒãƒ‘ティを定義ã—ãŸã‚‰ã€ãã®ãƒ—ãƒãƒ‘ティå"
"を使用ã§ãã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"References to composite identifier properties follow the same naming rules. "
"If the entity has a non-identifier property named id, the composite "
"identifier property can only be referenced by its defined named. Otherwise, "
"the special <literal>id property can be used to reference the "
"identifier property."
msgstr ""
"複åˆè˜åˆ¥åプãƒãƒ‘ティã¸ã®å‚ç…§ã¯åŒã˜å‘½åルールã«å¾“ã„ã¾ã™ã€‚ã‚‚ã—エンティティ㌠"
"id ã¨å付ã‘られãŸéžè˜åˆ¥åプãƒãƒ‘ティをæŒã£ã¦ã„ãŸã‚‰ã€è¤‡åˆè˜åˆ¥åプãƒãƒ‘ティã¯ãã®"
"定義ã•ã‚ŒãŸåå‰ã§å‚ç…§ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ãã†ã§ãªã„ã¨ã€ç‰¹åˆ¥ãª <literal>id always "
"referred to the identifier property regardless of its actual name. A "
"ramification of that decision was that non-identifier properties named "
"<literal>id could never be referenced in Hibernate queries."
msgstr ""
"注記: ã“ã‚Œã¯ã€ãƒãƒ¼ã‚¸ãƒ§ãƒ³ 3.2.2 ã‹ã‚‰å¤§å¹…ã«å¤‰æ›´ã—ã¾ã—ãŸã€‚å‰ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã¯ã€ "
"<literal>id ã¯ã€ãã®å®Ÿéš›ã®åå‰ã«é–¢ä¿‚ãªã 常㫠"
"è˜åˆ¥åプãƒãƒ‘ティをå‚ç…§ã—ã¦ã„ã¾ã—ãŸã€‚ãã®çµæžœã€ <literal>id ã¨å付ã‘"
"られãŸéžè˜åˆ¥åプãƒãƒ‘ティã¯ã€ Hibernate ã§æ±ºã—ã¦å‚ç…§ã•ã‚Œã¾ã›ã‚“ã§ã—ãŸã€‚"
#. Tag: title
#, no-c-format
msgid "The select clause"
msgstr "Select 節"
#. Tag: para
#, no-c-format
msgid ""
"The <literal>select clause picks which objects and properties to "
"return in the query result set. Consider the following:"
msgstr ""
"<literal>select 節ã¯ä»¥ä¸‹ã®ã‚ˆã†ã«ã©ã®ã‚ªãƒ–ジェクトã¨å±žæ€§ã‚’クエリリザ"
"ルトセットã«è¿”ã™ã‹ã‚’é¸æŠžã—ã¾ã™:"
#. Tag: para
#, no-c-format
msgid ""
"The query will select <literal>mates of other Cat ã® mate ã‚’é¸æŠžã—"
"ã¾ã™ã€‚実際ã«ã¯æ¬¡ã®ã‚ˆã†ã«ã€ã‚ˆã‚Šç°¡æ½”ã«è¡¨ç¾ã§ãã¾ã™:"
#. Tag: para
#, no-c-format
msgid ""
"Queries can return properties of any value type including properties of "
"component type:"
msgstr ""
"クエリã¯ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆåž‹ã®ãƒ—ãƒãƒ‘ティをå«ã‚€ã€ã‚らゆる値型ã®ãƒ—ãƒãƒ‘ティも返ã›ã¾"
"ã™:"
#. Tag: para
#, no-c-format
msgid ""
"Queries can return multiple objects and/or properties as an array of type "
"<literal>Object[]:"
msgstr ""
"クエリã¯è¤‡æ•°ã®ã‚ªãƒ–ジェクト㨠(ã¾ãŸã¯) プãƒãƒ‘ティを <literal>Object[]:"
msgstr "ã‚‚ã—ã㯠<literal>List ã¨ã—ã¦ã€"
#. Tag: para
#, no-c-format
msgid ""
"Or - assuming that the class <literal>Family has an appropriate "
"constructor - as an actual typesafe Java object:"
msgstr ""
"ã‚ã‚‹ã„㯠<literal>Family クラスãŒé©åˆ‡ãªã‚³ãƒ³ã‚¹ãƒˆãƒ©ã‚¯ã‚¿ã‚’æŒã£ã¦ã„ã‚‹ã¨"
"ã™ã‚‹ãªã‚‰ã°ã€"
#. Tag: para
#, no-c-format
msgid ""
"You can assign aliases to selected expressions using <literal>as:"
msgstr "select 節㫠<literal>as を使ã£ã¦åˆ¥åã‚’ã¤ã‘ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"This is most useful when used together with <literal>select new map ã¨ä¸€ç·’ã«ä½¿ã†ã¨ãã«æœ€ã‚‚役立ã¡ã¾ã™ï¼š"
#. Tag: para
#, no-c-format
msgid ""
"This query returns a <literal>Map from aliases to selected values."
msgstr ""
"ã“ã®ã‚¯ã‚¨ãƒªã¯åˆ¥åã‹ã‚‰ select ã—ãŸå€¤ã¸ <literal>Map ã‚’è¿”ã—ã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Aggregate functions"
msgstr "集約関数"
#. Tag: para
#, no-c-format
msgid ""
"HQL queries can even return the results of aggregate functions on properties:"
msgstr "HQL ã®ã‚¯ã‚¨ãƒªã¯ãƒ—ãƒãƒ‘ティã®é›†ç´„関数ã®çµæžœã‚‚è¿”ã›ã¾ã™ï¼š"
#. Tag: para
#, no-c-format
msgid "The supported aggregate functions are:"
msgstr "サãƒãƒ¼ãƒˆã—ã¦ã„る集約関数ã¯ä»¥ä¸‹ã®ã‚‚ã®ã§ã™ã€‚"
#. Tag: para
#, fuzzy, no-c-format
msgid "<literal>avg(...), sum(...), min(...), max(...)"
msgstr "<literal>avg(...), sum(...), min(...), max(...)"
#. Tag: para
#, no-c-format
msgid "<literal>count(*)"
msgstr "<literal>count(*)"
#. Tag: para
#, fuzzy, no-c-format
msgid "<literal>count(...), count(distinct ...), count(all...)"
msgstr "<literal>count(...), count(distinct ...), count(all...)"
#. Tag: para
#, no-c-format
msgid ""
"You can use arithmetic operators, concatenation, and recognized SQL "
"functions in the select clause:"
msgstr ""
"select 節ã«ãŠã„ã¦ç®—è¡“æ“作ã€é€£çµã¨æ‰¿èªã•ã‚ŒãŸ SQL 関数を使ã†ã“ã¨ãŒã§ãã¾ã™:"
#. Tag: para
#, no-c-format
msgid ""
"The <literal>distinct and all keywords can be "
"used and have the same semantics as in SQL."
msgstr ""
"SQL ã¨åŒã˜æ„味をæŒã¤ <literal>distinct 㨠all "
"ã‚ーワードを使ã†ã“ã¨ãŒã§ãã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Polymorphic queries"
msgstr "ãƒãƒªãƒ¢ãƒ¼ãƒ•ã‚£ã‚ºãƒ を使ã£ãŸã‚¯ã‚¨ãƒª"
#. Tag: para
#, no-c-format
msgid "A query like:"
msgstr "次ã®ã‚ˆã†ãªã‚¯ã‚¨ãƒªï¼š"
#. Tag: para
#, no-c-format
msgid ""
"returns instances not only of <literal>Cat, but also of subclasses "
"like <literal>DomesticCat. Hibernate queries can name "
"<emphasis>any Java class or interface in the from インスタンスã ã‘ã§ã¯ãªã〠DomesticCatã©ã‚“ãª"
"</emphasis> Java クラスやインターフェースも from 節ã«å…¥ã‚Œ"
"ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚クエリã¯ãã®ã‚¯ãƒ©ã‚¹ã‚’æ‹¡å¼µã—ãŸã€ã‚‚ã—ãã¯ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ã‚’実"
"装ã—ãŸå…¨ã¦ã®æ°¸ç¶šã‚¯ãƒ©ã‚¹ã‚’è¿”ã—ã¾ã™ã€‚次ã®ã‚¯ã‚¨ãƒªã¯æ°¸ç¶šã‚ªãƒ–ジェクトをã™ã¹ã¦è¿”ã—ã¾"
"ã™:"
#. Tag: para
#, no-c-format
msgid ""
"The interface <literal>Named might be implemented by various "
"persistent classes:"
msgstr ""
"<literal>Named インターフェースã¯æ§˜ã€…ãªæ°¸ç¶šã‚¯ãƒ©ã‚¹ã«ã‚ˆã£ã¦å®Ÿè£…ã•ã‚Œã¾"
"ã™ã€‚:"
#. Tag: para
#, no-c-format
msgid ""
"These last two queries will require more than one SQL <literal>SELECTorder by clause does not "
"correctly order the whole result set. It also means you cannot call these "
"queries using <literal>Query.scroll()."
msgstr ""
"最後ã®2ã¤ã®ã‚¯ã‚¨ãƒªã¯ã€2ã¤ä»¥ä¸Šã® SQL <literal>SELECT ã‚’è¦æ±‚ã—ã¦ã„ã‚‹ã“"
"ã¨ã«æ³¨æ„ã—ã¦ãã ã•ã„。ã“ã®ã“ã¨ã¯ <literal>order by 節ãŒãƒªã‚¶ãƒ«ãƒˆã‚»ãƒƒ"
"ト全体をæ£ç¢ºã«ã¯æ•´åˆ—ã—ãªã„ã“ã¨ã‚’æ„味ã—ã¾ã™ (ã•ã‚‰ã«ãã‚Œã¯ã€ <literal>Query."
"scroll()</literal> を使用ã—ã¦ã“れらã®ã‚¯ã‚¨ãƒªã‚’呼ã¶ã“ã¨ãŒã§ããªã„ã“ã¨ã‚’æ„味ã—ã¾"
"ã™ã€‚)。"
#. Tag: title
#, no-c-format
msgid "The where clause"
msgstr "where 節"
#. Tag: para
#, no-c-format
msgid ""
"The <literal>where clause allows you to refine the list of "
"instances returned. If no alias exists, you can refer to properties by name:"
msgstr ""
"<literal>where 節ã¯è¿”ã•ã‚Œã‚‹ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã®ãƒªã‚¹ãƒˆã‚’絞るã“ã¨ãŒã§ãã¾"
"ã™ã€‚ã‚‚ã—別åãŒãªã„å ´åˆã€åå‰ã§ãƒ—ãƒãƒ‘ティをå‚ç…§ã—ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid "If there is an alias, use a qualified property name:"
msgstr "ã‚‚ã—別åãŒã‚ã‚‹å ´åˆã€ä¿®é£¾åを使ã£ã¦ãã ã•ã„:"
#. Tag: para
#, no-c-format
msgid "This returns instances of <literal>Cat named 'Fritz'."
msgstr ""
"åå‰ãŒ 'Fritz' ã¨ã„ㆠ<literal>Cat ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã‚’è¿”ã—ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid "The following query:"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"returns all instances of <literal>Foo with an instance of "
"<literal>bar with a date property equal to the "
"<literal>startDate property of the Foo. "
"Compound path expressions make the <literal>where clause extremely "
"powerful. Consider the following:"
msgstr ""
"上㮠HQL ã¯ã€ <literal>Foo ã® startDate プãƒãƒ‘"
"ティã¨ç‰ã—ã„ <literal>date プãƒãƒ‘ティをæŒã£ãŸ barFoo インスタンス"
"ã‚’è¿”ã—ã¾ã™ã€‚コンパウンドパスå¼ã¯ <literal>where 節をéžå¸¸ã«å¼·åŠ›ã«ã—"
"ã¾ã™ã€‚注目:"
#. Tag: para
#, no-c-format
msgid ""
"This query translates to an SQL query with a table (inner) join. For example:"
msgstr ""
"ã“ã®ã‚¯ã‚¨ãƒªã¯ãƒ†ãƒ¼ãƒ–ルçµåˆï¼ˆå†…部çµåˆï¼‰ã‚’æŒã¤ SQL クエリã«å¤‰æ›ã•ã‚Œã¾ã™ã€‚ãã®ä»£ã‚"
"ã‚Šã«ä»¥ä¸‹ã®ã‚ˆã†ã«æ›¸ãã¨ã€"
#. Tag: para
#, no-c-format
msgid "would result in a query that would require four table joins in SQL."
msgstr ""
"ã‚‚ã—上ã®ã‚¯ã‚¨ãƒªã‚’記述ã—ãŸã‚‰ã‚¯ã‚¨ãƒªå†…ã«4ã¤ã®ãƒ†ãƒ¼ãƒ–ルçµåˆã‚’å¿…è¦ã¨ã™ã‚‹ SQL クエリ"
"ã«å¤‰æ›ã•ã‚Œã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"The <literal>= operator can be used to compare not only "
"properties, but also instances:"
msgstr ""
"<literal>= 演算åã¯ä»¥ä¸‹ã®ã‚ˆã†ã«ã€ãƒ—ãƒãƒ‘ティã ã‘ã§ãªãインスタンスを"
"比較ã™ã‚‹ãŸã‚ã«ã‚‚使ã‚ã‚Œã¾ã™ã€‚:"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The special property (lowercase) <literal>id can be used to "
"reference the unique identifier of an object. See <xref linkend=\"queryhql-"
"identifier-property\" /> for more information."
msgstr ""
"<literal>id (å°æ–‡å—) ã¯ç‰¹åˆ¥ãªãƒ—ãƒãƒ‘ティã§ã‚ã‚Šã€ã‚ªãƒ–ジェクトã®ãƒ¦ãƒ‹ãƒ¼"
"クãªè˜åˆ¥åã‚’å‚ç…§ã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã§ãã¾ã™ã€‚詳細ã«ã¤ã„ã¦ã¯ <xref linkend="
"\"queryhql-identifier-property\"/> ã‚’å‚ç…§ãã ã•ã„。"
#. Tag: para
#, no-c-format
msgid "The second query is efficient and does not require a table join."
msgstr "2番目ã®ã‚¯ã‚¨ãƒªã¯åŠ¹çŽ‡çš„ã§ã™ã€‚テーブルçµåˆãŒå¿…è¦ã‚ã‚Šã¾ã›ã‚“。"
#. Tag: para
#, no-c-format
msgid ""
"Properties of composite identifiers can also be used. Consider the following "
"example where <literal>Person has composite identifiers consisting "
"of <literal>country and medicareNumber:"
msgstr ""
"ã¾ãŸè¤‡åˆè˜åˆ¥åã®ãƒ—ãƒãƒ‘ティも使用ã§ãã¾ã™ã€‚ã“ã“㧠<literal>Person "
"㌠<literal>country 㨠medicareNumber ã‹ã‚‰ãªã‚‹è¤‡"
"åˆè˜åˆ¥åã‚’æŒã¤ã¨ä»®å®šã—ã¾ã™ã€‚è˜åˆ¥åプãƒãƒ‘ティå‚ç…§ã«ã¤ã„ã¦ã®è©³ç´°ã¯ã€å‰å›žã¨åŒæ§˜"
"ã« <xref linkend=\"queryhql-identifier-property\"/> ã‚’å‚ç…§ãã ã•ã„。"
#. Tag: para
#, no-c-format
msgid "Once again, the second query does not require a table join."
msgstr "ç¹°ã‚Šè¿”ã—ã¾ã™ãŒã€2番目ã®ã‚¯ã‚¨ãƒªã«ã¯ãƒ†ãƒ¼ãƒ–ルçµåˆãŒå¿…è¦ã‚ã‚Šã¾ã›ã‚“。"
#. Tag: para
#, no-c-format
msgid ""
"See <xref linkend=\"queryhql-identifier-property\" /> for more information "
"regarding referencing identifier properties)"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"The special property <literal>class accesses the discriminator "
"value of an instance in the case of polymorphic persistence. A Java class "
"name embedded in the where clause will be translated to its discriminator "
"value."
msgstr ""
"åŒæ§˜ã« <literal>class ã¯ç‰¹åˆ¥ãªãƒ—ãƒãƒ‘ティã§ã‚ã‚Šã€ãƒãƒªãƒ¢ãƒ¼ãƒ•ã‚£ãƒƒã‚¯ãª"
"永続化ã«ãŠã‘るインスタンス㮠discriminator 値ã«ã‚¢ã‚¯ã‚»ã‚¹ã—ã¾ã™ã€‚ where 節ã«åŸ‹"
"ã‚è¾¼ã¾ã‚ŒãŸ Java ã®ã‚¯ãƒ©ã‚¹åã¯ãã® discriminator 値ã«å¤‰æ›ã•ã‚Œã¾ã™ã€‚"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"You can also use components or composite user types, or properties of said "
"component types. See <xref linkend=\"queryhql-components\" /> for more "
"information."
msgstr ""
"ã¾ãŸã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã‚„複åˆãƒ¦ãƒ¼ã‚¶ãƒ¼åž‹ã€åˆã¯ãã®ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã®ãƒ—ãƒãƒ‘ティも使用"
"ã§ãã¾ã™ã€‚詳細ã«ã¤ã„ã¦ã¯ã€ <xref linkend=\"queryhql-components\"/> ã‚’å‚照下ã•"
"ã„。"
#. Tag: para
#, no-c-format
msgid ""
"An \"any\" type has the special properties <literal>id and "
"<literal>class that allows you to express a join in the following "
"way (where <literal>AuditLog.item is a property mapped with "
"<literal><any>):"
msgstr ""
"\"any\" åž‹ã¯ç‰¹åˆ¥ãªãƒ—ãƒãƒ‘ティã§ã‚ã‚‹ <literal>id 㨠class 㯠<any> ã§ãƒžãƒƒãƒ”"
"ングã•ã‚ŒãŸãƒ—ãƒãƒ‘ティã§ã™)。"
#. Tag: para
#, no-c-format
msgid ""
"The <literal>log.item.class and payment.class "
"would refer to the values of completely different database columns in the "
"above query."
msgstr ""
"<literal>log.item.class 㨠payment.class ãŒä¸Šè¨˜"
"ã®ã‚¯ã‚¨ãƒªä¸ã§å…¨ãç•°ãªã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚«ãƒ©ãƒ ã®å€¤ã‚’å‚ç…§ã™ã‚‹ã¨ã„ã†ã“ã¨ã«æ³¨æ„ã—ã¦ã"
"ã ã•ã„。"
#. Tag: title
#, no-c-format
msgid "Expressions"
msgstr "Expressions å¼"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Expressions used in the <literal>where clause include the "
"following:"
msgstr ""
"SQL ã® <literal>where 節ã§è¨˜è¿°ã™ã‚‹ã“ã¨ãŒå‡ºæ¥ã‚‹å¼ã®ã»ã¨ã‚“ã©ã‚’ HQL ã§"
"も記述ã§ãã¾ã™:"
#. Tag: para
#, no-c-format
msgid "mathematical operators: <literal>+, -, *, /"
msgstr "算術演算å:<literal>+, -, *, /"
#. Tag: para
#, no-c-format
msgid ""
"binary comparison operators: <literal>=, >=, <=, <>, !=, like"
#. Tag: para
#, no-c-format
msgid "logical operations <literal>and, or, not"
msgstr "è«–ç†æ¼”ç®—å:<literal>and, or, not"
#. Tag: para
#, no-c-format
msgid "Parentheses <literal>( ) that indicates grouping"
msgstr "グループ分ã‘を表ã™æ‹¬å¼§ï¼š<literal>( )"
#. Tag: para
#, no-c-format
msgid ""
"<literal>in, not in, betweenis null, is not null, "
"<literal>is empty, is not empty, "
"<literal>member of and not member of"
msgstr ""
"<literal>in, not in, betweenis null, is not null, "
"<literal>is empty, is not empty, "
"<literal>member of and not member of"
#. Tag: para
#, no-c-format
msgid ""
"\"Simple\" case, <literal>case ... when ... then ... else ... end, "
"and \"searched\" case, <literal>case when ... then ... else ... end"
msgstr ""
"\"シンプル\"㪠case <literal>case ... when ... then ... else ... endcase when ... then ... else ... end or concat(...,...)"
"</literal>"
msgstr ""
"ストリングã®é€£çµ <literal>...||... ã¾ãŸã¯ concat(...,...)"
"</literal>"
#. Tag: para
#, no-c-format
msgid ""
"<literal>current_date(), current_time(), and "
"<literal>current_timestamp()"
msgstr ""
"<literal>current_date(), current_time(), "
"<literal>current_timestamp()"
#. Tag: para
#, no-c-format
msgid ""
"<literal>second(...), minute(...), hour"
"(...)</literal>, day(...), month(...), "
"and <literal>year(...)"
msgstr ""
"<literal>second(...), minute(...), hour"
"(...)</literal>, day(...), month(...), "
"<literal>year(...),"
#. Tag: para
#, no-c-format
msgid ""
"Any function or operator defined by EJB-QL 3.0: <literal>substring(), trim"
"(), lower(), upper(), length(), locate(), abs(), sqrt(), bit_length(), mod()"
"</literal>"
msgstr ""
"EJB-QL 3.0 ã§å®šç¾©ã•ã‚Œã¦ã„る関数や演算å: <literal>substring(), trim(), lower"
"(), upper(), length(), locate(), abs(), sqrt(), bit_length(), mod()</literal>"
#. Tag: para
#, no-c-format
msgid "<literal>coalesce() and nullif()"
msgstr "<literal>coalesce() 㨠nullif()"
#. Tag: para
#, no-c-format
msgid ""
"<literal>str() for converting numeric or temporal values to a "
"readable string"
msgstr "æ•°å—や時間ã®å€¤ã‚’ String ã«ã‚³ãƒ³ãƒãƒ¼ãƒˆã™ã‚‹ <literal>str()"
#. Tag: para
#, no-c-format
msgid ""
"<literal>cast(... as ...), where the second argument is the name "
"of a Hibernate type, and <literal>extract(... from ...) if ANSI "
"<literal>cast() and extract() is supported by "
"the underlying database"
msgstr ""
"2番目ã®å¼•æ•°ãŒ Hibernate åž‹ã®åå‰ã§ã‚ã‚‹ <literal>cast(... as ...) "
"㨠<literal>extract(... from ...)。ãŸã ã—使用ã™ã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãŒ "
"ANSI <literal>cast() 㨠extract() をサãƒãƒ¼ãƒˆã™ã‚‹"
"å ´åˆã«é™ã‚Šã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"the HQL <literal>index() function, that applies to aliases of a "
"joined indexed collection"
msgstr ""
"çµåˆã—ãŸã‚¤ãƒ³ãƒ‡ãƒƒã‚¯ã‚¹ä»˜ãã®ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã®åˆ¥åã«é©ç”¨ã•ã‚Œã‚‹ HQL ã® "
"<literal>index() 関数。"
#. Tag: para
#, no-c-format
msgid ""
"HQL functions that take collection-valued path expressions: <literal>size(), "
"minelement(), maxelement(), minindex(), maxindex()</literal>, along with the "
"special <literal>elements() and indices "
"functions that can be quantified using <literal>some, all, exists, any, insome, all, "
"exists, any, in</literal> を使ã£ã¦ä¿®é£¾ã™ã‚‹ã“ã¨ãŒã§ãる特別㪠"
"<literal>elements() 㨠indices 関数ã¨ä¸€ç·’ã«ä½¿ã„"
"ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"Any database-supported SQL scalar function like <literal>sign(), "
"<literal>trunc(), rtrim(), and sin()〠trunc()〠rtrim()sin() ã®ã‚ˆã†ãªãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãŒã‚µãƒãƒ¼ãƒˆã™ã‚‹ SQL ス"
"カラ関数。"
#. Tag: para
#, no-c-format
msgid "JDBC-style positional parameters <literal>?"
msgstr "JDBC スタイルã®ä½ç½®ãƒ‘ラメータ <literal>?"
#. Tag: para
#, no-c-format
msgid ""
"named parameters <literal>:name, :start_date, "
"and <literal>:x1"
msgstr ""
"åå‰ä»˜ãパラメータ: <literal>:name, :start_date:x1"
#. Tag: para
#, no-c-format
msgid ""
"SQL literals <literal>'foo', 69, 6.66E"
"+2</literal>, '1970-01-01 10:00:01.0'"
msgstr ""
"SQL リテラル: <literal>'foo'〠69〠"
"<literal>6.66E+2〠'1970-01-01 10:00:01.0'"
#. Tag: para
#, no-c-format
msgid ""
"Java <literal>public static final constants eg.Color."
"TABBY</literal>"
msgstr ""
"Java 㮠<literal>public static final 定数: eg.Color."
"TABBY</literal>"
#. Tag: para
#, no-c-format
msgid ""
"<literal>in and between can be used as follows:"
msgstr ""
"<literal>in 㨠between ã¯ä»¥ä¸‹ã®ã‚ˆã†ã«ä½¿ç”¨ã§ãã¾"
"ã™:"
#. Tag: para
#, no-c-format
msgid "The negated forms can be written as follows:"
msgstr "ã¾ãŸã€å¦å®šå½¢ã§è¨˜è¿°ã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"Similarly, <literal>is null and is not null can "
"be used to test for null values."
msgstr ""
"åŒæ§˜ã« <literal>is null ã‚„ is not null 㯠null "
"値をテストã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã§ãã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"Booleans can be easily used in expressions by declaring HQL query "
"substitutions in Hibernate configuration:"
msgstr ""
"Hibernate è¨å®šãƒ•ã‚¡ã‚¤ãƒ«ã§ HQL query substitutions を定義ã™ã‚Œã°ã€ boolean 値を"
"å¼ã®ä¸ã§ç°¡å˜ã«ä½¿ç”¨ã§ãã¾ã™ï¼š"
#. Tag: para
#, no-c-format
msgid ""
"This will replace the keywords <literal>true and false1 and 0 in "
"the translated SQL from this HQL:"
msgstr ""
"ã“ã†ã™ã‚‹ã“ã¨ã§ä¸‹è¨˜ã® HQL ã‚’ SQL ã«å¤‰æ›ã™ã‚‹ã¨ãã« <literal>true 〠"
"<literal>false ã‚ーワード㯠1 〠0 or the special size() function."
msgstr ""
"特別ãªãƒ—ãƒãƒ‘ティ <literal>sizeã€ã¾ãŸã¯ç‰¹åˆ¥ãªé–¢æ•° size() and maxindex functions. "
"Similarly, you can refer to the minimum and maximum elements of a collection "
"of basic type using the <literal>minelement and "
"<literal>maxelement functions. For example:"
msgstr ""
"インデックス付ãã®ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã§ã¯ã€ <literal>minindex 㨠"
"<literal>maxindex 関数を使ã£ã¦ã€ã‚¤ãƒ³ãƒ‡ãƒƒã‚¯ã‚¹ã®æœ€å°å€¤ã¨æœ€å¤§å€¤ã‚’å‚ç…§"
"ã§ãã¾ã™ã€‚åŒæ§˜ã«ã€ <literal>minelement 㨠maxelement are "
"supported when passed the element or index set of a collection "
"(<literal>elements and indices functions) or "
"the result of a subquery (see below):"
msgstr ""
"コレクションã®è¦ç´ やインデックスã®ã‚»ãƒƒãƒˆï¼ˆ<literal>elements 㨠"
"<literal>indices 関数)ã€ã¾ãŸã¯å‰¯å•ã„åˆã‚ã›ï¼ˆå¾Œè¿°ï¼‰ã®çµæžœãŒå—ã‘å–ã‚Œ"
"ã‚‹ã¨ãã¯ã€ SQL 関数 <literal>any, some, all, exists, in ãŒã‚µãƒãƒ¼ãƒˆ"
"ã•ã‚Œã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"Note that these constructs - <literal>size, elementsindices, minindex, "
"<literal>maxindex, minelement, "
"<literal>maxelement - can only be used in the where clause in "
"Hibernate3."
msgstr ""
"<literal>size〠elements〠indicesminindex〠maxindex〠"
"<literal>minelement〠maxelement 㯠Hibernate3 "
"ã® where 節ã ã‘ã§åˆ©ç”¨å¯èƒ½ã§ã‚ã‚‹ã“ã¨ã«æ³¨æ„ã—ã¦ãã ã•ã„。"
#. Tag: para
#, no-c-format
msgid ""
"Elements of indexed collections (arrays, lists, and maps) can be referred to "
"by index in a where clause only:"
msgstr ""
"インデックス付ãã®ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ï¼ˆarrays, lists, maps)ã®è¦ç´ ã¯ã€ã‚¤ãƒ³ãƒ‡ãƒƒã‚¯ã‚¹ã§"
"å‚ç…§ã§ãã¾ã™ï¼ˆwhere節内ã§ã®ã¿ï¼‰ï¼š"
#. Tag: para
#, no-c-format
msgid ""
"The expression inside <literal>[] can even be an arithmetic "
"expression:"
msgstr "<literal>[] 内部ã®å¼ã¯ã€ç®—è¡“å¼ã§ã‚‚構ã„ã¾ã›ã‚“。"
#. Tag: para
#, no-c-format
msgid ""
"HQL also provides the built-in <literal>index() function for "
"elements of a one-to-many association or collection of values."
msgstr ""
"一対多関連や値ã®ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã®è¦ç´ ã«å¯¾ã—ã¦ã¯ã€ HQL ã¯çµ„ã¿è¾¼ã¿ã® "
"<literal>index() 関数も用æ„ã—ã¦ã„ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid "Scalar SQL functions supported by the underlying database can be used:"
msgstr ""
"ベースã¨ãªã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãŒã‚µãƒãƒ¼ãƒˆã—ã¦ã„るスカラー SQL 関数ãŒä½¿ç”¨ã§ãã¾ã™ï¼š"
#. Tag: para
#, no-c-format
msgid ""
"Consider how much longer and less readable the following query would be in "
"SQL:"
msgstr ""
"ã‚‚ã—ã¾ã å…¨ã¦ã‚’ç†è§£ã—ã¦ã„ãªã„ãªã‚‰ã€ä¸‹ã®ã‚¯ã‚¨ãƒªã‚’ SQL ã§ã©ã‚Œã ã‘é•·ãã€èªã¿ã¥ã‚‰ã"
"出æ¥ã‚‹ã‹è€ƒãˆã¦ãã ã•ã„:"
#. Tag: para
#, no-c-format
msgid "<emphasis>Hint: something like"
msgstr "<emphasis>ヒント: 例ãˆã°ã“ã®ã‚ˆã†ã«å‡ºæ¥ã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "The order by clause"
msgstr "order by 節"
#. Tag: para
#, no-c-format
msgid ""
"The list returned by a query can be ordered by any property of a returned "
"class or components:"
msgstr ""
"クエリãŒè¿”ã™ list ã¯ã€è¿”ã•ã‚Œã‚‹ã‚¯ãƒ©ã‚¹ã‚„コンãƒãƒ¼ãƒãƒ³ãƒˆã®ä»»æ„ã®å±žæ€§ã«ã‚ˆã£ã¦ä¸¦ã¹"
"替ãˆã‚‰ã‚Œã¾ã™ï¼š"
#. Tag: para
#, no-c-format
msgid ""
"The optional <literal>asc or desc indicate "
"ascending or descending order respectively."
msgstr ""
"オプション㮠<literal>asc 㨠desc ã¯ãã‚Œãžã‚Œæ˜‡é †"
"ã‹é™é †ã®æ•´åˆ—を示ã—ã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "The group by clause"
msgstr "group by 節"
#. Tag: para
#, no-c-format
msgid ""
"A query that returns aggregate values can be grouped by any property of a "
"returned class or components:"
msgstr ""
"集約値を返ã™ã‚¯ã‚¨ãƒªã¯ã€è¿”ã•ã‚Œã‚‹ã‚¯ãƒ©ã‚¹ã‚„コンãƒãƒ¼ãƒãƒ³ãƒˆã®ä»»æ„ã®ãƒ—ãƒãƒ‘ティã«ã‚ˆã£"
"ã¦ã‚°ãƒ«ãƒ¼ãƒ—化ã§ãã¾ã™:"
#. Tag: para
#, no-c-format
msgid "A <literal>having clause is also allowed."
msgstr "<literal>having 節も使ãˆã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"SQL functions and aggregate functions are allowed in the <literal>havingorder by clauses if they are supported by "
"the underlying database (i.e., not in MySQL)."
msgstr ""
"ã‚‚ã—使用ã™ã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãŒã‚µãƒãƒ¼ãƒˆã—ã¦ã„ã‚‹ãªã‚‰ã€ <literal>having "
"㨠<literal>order by 節㧠SQL 関数ã¨é›†ç´„関数ãŒä½¿ãˆã¾ã™ï¼ˆä¾‹ãˆã° "
"MySQL ã«ã¯ã‚ã‚Šã¾ã›ã‚“)。"
#. Tag: para
#, no-c-format
msgid ""
"Neither the <literal>group by clause nor the order bycat are non-"
"aggregated. You have to list all non-aggregated properties explicitly."
msgstr ""
"<literal>group by 節や order by 節ã«ç®—è¡“å¼ã‚’å«ã‚€"
"ã“ã¨ãŒã§ããªã„ã“ã¨ã«æ³¨æ„ã—ã¦ãã ã•ã„。ã¾ãŸã€ Hibernate ã¯ä»Šã®ã¨ã“ã‚グループ"
"エンティティを拡張ã—ãªã„ã“ã¨ã«ã‚‚注æ„ã—ã¦ãã ã•ã„。ã—ãŸãŒã£ã¦ã€ã‚‚ã— "
"<literal>cat ã®å…¨ã¦ã®ãƒ—ãƒãƒ‘ティãŒéžé›†åˆä½“ã®å ´åˆã€ group "
"by cat</literal> を書ãã“ã¨ã¯ã§ãã¾ã›ã‚“。全ã¦ã®éžé›†åˆä½“ã®ãƒ—ãƒãƒ‘ティを明示的ã«"
"リストã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Subqueries"
msgstr "副å•ã„åˆã‚ã›"
#. Tag: para
#, no-c-format
msgid ""
"For databases that support subselects, Hibernate supports subqueries within "
"queries. A subquery must be surrounded by parentheses (often by an SQL "
"aggregate function call). Even correlated subqueries (subqueries that refer "
"to an alias in the outer query) are allowed."
msgstr ""
"サブセレクトをサãƒãƒ¼ãƒˆã™ã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã®ãŸã‚〠Hibernate ã¯å‰¯å•ã„åˆã‚ã›ã‚’サ"
"ãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ã€‚副å•ã„åˆã‚ã›ã¯æ‹¬å¼§ã§å›²ã¾ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“( SQL ã®é›†ç´„関数"
"呼ã³å‡ºã—ã«ã‚ˆã‚‹äº‹ãŒå¤šã„ã§ã™ï¼‰ã€‚関連副å•ã„åˆã‚ã› (外部クエリä¸ã®åˆ¥åã‚’å‚ç…§ã™ã‚‹"
"副å•ã„åˆã‚ã›ã®ã“ã¨) ã•ãˆè¨±å¯ã•ã‚Œã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid "Note that HQL subqueries can occur only in the select or where clauses."
msgstr ""
"HQL 副å•ã„åˆã‚ã›ã¯ã€ select ã¾ãŸã¯ where 節ã ã‘ã§ä½¿ã‚れるã“ã¨ã«æ³¨æ„ã—ã¦ãã ã•"
"ã„。"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Note that subqueries can also utilize <literal>row value constructor for more "
"information."
msgstr ""
"サブクエリ㯠<literal>row value constructor 構文も使用ã§ãã‚‹ã“ã¨ã‚’"
"覚ãˆã¦ãŠã„ã¦ãã ã•ã„。詳細ã«ã¤ã„ã¦ã¯ <xref linkend=\"queryhql-tuple\"/> ã‚’å‚"
"ç…§ã—ã¦ãã ã•ã„。"
#. Tag: title
#, no-c-format
msgid "HQL examples"
msgstr "HQL ã®ä¾‹"
#. Tag: para
#, no-c-format
msgid ""
"Hibernate queries can be quite powerful and complex. In fact, the power of "
"the query language is one of Hibernate's main strengths. The following "
"example queries are similar to queries that have been used on recent "
"projects. Please note that most queries you will write will be much simpler "
"than the following examples."
msgstr ""
"Hibernate クエリã¯éžå¸¸ã«å¼·åŠ›ã§è¤‡é›‘ã«ã§ãã¾ã™ã€‚実際ã€ã‚¯ã‚¨ãƒªè¨€èªžã®å¨åŠ›ã¯ "
"Hibernate ã®ä¸»è¦ãªã‚»ãƒ¼ãƒ«ã‚¹ãƒã‚¤ãƒ³ãƒˆã®ä¸€ã¤ã§ã™ã€‚ã“ã“ã«æœ€è¿‘ã®ãƒ—ãƒã‚¸ã‚§ã‚¯ãƒˆã§ä½¿ç”¨"
"ã—ãŸã‚¯ã‚¨ãƒªã¨éžå¸¸ã«ã‚ˆãä¼¼ãŸä¾‹ãŒã‚ã‚Šã¾ã™ã€‚ã»ã¨ã‚“ã©ã®ã‚¯ã‚¨ãƒªã¯ã“れらã®ä¾‹ã‚ˆã‚Šç°¡å˜"
"ã«è¨˜è¿°ã§ãã‚‹ã“ã¨ã«æ³¨æ„ã—ã¦ãã ã•ã„。"
#. Tag: para
#, no-c-format
msgid ""
"The following query returns the order id, number of items, the given minimum "
"total value and the total value of the order for all unpaid orders for a "
"particular customer. The results are ordered by total value. In determining "
"the prices, it uses the current catalog. The resulting SQL query, against "
"the <literal>ORDER, ORDER_LINE, "
"<literal>PRODUCT, CATALOG and PRICEORDER_LINE〠PRODUCT〠"
"<literal>CATALOG ãŠã‚ˆã³ PRICE テーブルã«å¯¾ã—4ã¤"
"ã®å†…部çµåˆã¨ (関連ã—ãªã„) 副å•ã„åˆã‚ã›ã‚’æŒã¡ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"What a monster! Actually, in real life, I'm not very keen on subqueries, so "
"my query was really more like this:"
msgstr ""
"何ã¦å·¨å¤§ãªã‚¯ã‚¨ãƒªãªã®ã§ã—ょã†ã€‚普段ç§ã¯å‰¯å•ã„åˆã‚ã›ã‚’ã‚ã¾ã‚Šä½¿ã„ã¾ã›ã‚“。ã—ãŸ"
"ãŒã£ã¦ç§ã®ã‚¯ã‚¨ãƒªã¯å®Ÿéš›ã«ã¯ä»¥ä¸‹ã®ã‚ˆã†ã«ãªã‚Šã¾ã™ã€‚:"
#. Tag: para
#, no-c-format
msgid ""
"The next query counts the number of payments in each status, excluding all "
"payments in the <literal>AWAITING_APPROVAL status where the most "
"recent status change was made by the current user. It translates to an SQL "
"query with two inner joins and a correlated subselect against the "
"<literal>PAYMENT, PAYMENT_STATUS and "
"<literal>PAYMENT_STATUS_CHANGE tables."
msgstr ""
"次ã®ã‚¯ã‚¨ãƒªã¯å„ステータスã®æ”¯æ‰•ã„æ•°ã‚’æ•°ãˆã¾ã™ã€‚ãŸã ã—ã™ã¹ã¦ã®æ”¯æ‰•ã„ãŒç¾åœ¨ã®åˆ©"
"用者ã«ã‚ˆã‚‹æœ€æ–°ã®ã‚¹ãƒ†ãƒ¼ã‚¿ã‚¹å¤‰æ›´ã§ã‚ã‚‹ <literal>AWAITING_APPROVAL ã§"
"ã‚ã‚‹å ´åˆã‚’除ãã¾ã™ã€‚ã“ã®ã‚¯ã‚¨ãƒªã¯2ã¤ã®å†…部çµåˆã¨ <literal>PAYMENT, "
"<literal>PAYMENT_STATUS ãŠã‚ˆã³ PAYMENT_STATUS_CHANGE collection was mapped as a list, "
"instead of a set, the query would have been much simpler to write."
msgstr ""
"ã‚‚ã— set ã®ä»£ã‚ã‚Šã« list ã¨ã—㦠<literal>statusChanges コレクション"
"をマッピングã—ãŸãªã‚‰ã°ã€ã¯ã‚‹ã‹ã«ç°¡å˜ã«ã‚¯ã‚¨ãƒªã‚’記述ã§ãã‚‹ã§ã—ょã†ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"The next query uses the MS SQL Server <literal>isNull() function "
"to return all the accounts and unpaid payments for the organization to which "
"the current user belongs. It translates to an SQL query with three inner "
"joins, an outer join and a subselect against the <literal>ACCOUNT, "
"<literal>PAYMENT, PAYMENT_STATUS, "
"<literal>ACCOUNT_TYPE, ORGANIZATION and "
"<literal>ORG_USER tables."
msgstr ""
"次ã®ã‚¯ã‚¨ãƒªã¯ç¾åœ¨ã®ãƒ¦ãƒ¼ã‚¶ãƒ¼ãŒæ‰€å±žã™ã‚‹çµ„ç¹”ã«å¯¾ã™ã‚‹ã‚¢ã‚«ã‚¦ãƒ³ãƒˆãŠã‚ˆã³æœªæ‰•ã„ã®æ”¯æ‰•"
"ã„ã‚’ã™ã¹ã¦è¿”ã™ MS SQL Server ã® <literal>isNull() 関数を使用ã—ã¦ã„"
"ã¾ã™ã€‚ã“ã®ã‚¯ã‚¨ãƒªã¯3ã¤ã®å†…部çµåˆã¨1ã¤ã®å¤–部çµåˆã€ãã—㦠<literal>ACCOUNTPAYMENT〠PAYMENT_STATUS〠"
"<literal>ACCOUNT_TYPE〠ORGANIZATION ãŠã‚ˆã³ "
"<literal>ORG_USER テーブルã«å¯¾ã™ã‚‹å‰¯å•ã„åˆã‚ã›æŒã£ãŸ SQL ã«å¤‰æ›ã•ã‚Œ"
"ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"For some databases, we would need to do away with the (correlated) subselect."
msgstr ""
"ã„ãã¤ã‹ã®ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã«ã¤ã„ã¦ã¯ã€ (関連ã•ã›ã‚‰ã‚ŒãŸ) 副å•ã„åˆã‚ã›ã®ä½¿ç”¨ã‚’é¿ã‘"
"ã‚‹å¿…è¦ãŒã‚ã‚‹ã§ã—ょã†ã€‚"
#. Tag: title
#, no-c-format
msgid "Bulk update and delete"
msgstr "大é‡ã® UPDATE 㨠DELETE"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"HQL now supports <literal>update, delete and "
"<literal>insert ... select ... statements. See 㨠delete〠"
"<literal>insert ... select ... ステートメントをサãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ã€‚"
"詳細ã«ã¤ã„ã¦ã¯ <xref linkend=\"batch-direct\"/> ã‚’å‚ç…§ãã ã•ã„。"
#. Tag: title
#, no-c-format
msgid "Tips & Tricks"
msgstr "Tips & Tricks"
#. Tag: para
#, no-c-format
msgid "You can count the number of query results without returning them:"
msgstr "実際ã«çµæžœã‚’è¿”ã•ãªãã¦ã‚‚クエリã®çµæžœæ•°ã‚’æ•°ãˆã‚‹ã“ã¨ãŒã§ãã¾ã™:"
#. Tag: para
#, no-c-format
msgid "To order a result by the size of a collection, use the following query:"
msgstr ""
"コレクションã®ã‚µã‚¤ã‚ºã«ã‚ˆã‚Šçµæžœã‚’並ã¹æ›¿ãˆã‚‹ãŸã‚ã«ã¯ä»¥ä¸‹ã®ã‚¯ã‚¨ãƒªã‚’使用ã—ã¾ã™:"
#. Tag: para
#, no-c-format
msgid ""
"If your database supports subselects, you can place a condition upon "
"selection size in the where clause of your query:"
msgstr ""
"使用ã—ã¦ã„るデータベースãŒã‚µãƒ–セレクトをサãƒãƒ¼ãƒˆã™ã‚‹å ´åˆã€ã‚¯ã‚¨ãƒªã® where 節ã§"
"サイズã«ã‚ˆã‚‹é¸æŠžæ¡ä»¶ã‚’è¨å®šã§ãã¾ã™:"
#. Tag: para
#, no-c-format
msgid "If your database does not support subselects, use the following query:"
msgstr ""
"使用ã—ã¦ã„るデータベースãŒã‚µãƒ–セレクトをサãƒãƒ¼ãƒˆã—ãªã„å ´åˆã¯ã€æ¬¡ã®ã‚¯ã‚¨ãƒªã‚’使"
"用ã—ã¦ãã ã•ã„:"
#. Tag: para
#, no-c-format
msgid ""
"As this solution cannot return a <literal>User with zero messages "
"because of the inner join, the following form is also useful:"
msgstr ""
"内部çµåˆã‚’ã—ã¦ã„ã‚‹ã›ã„ã§ä¸Šã®è§£æ±ºæ³•ãŒ message ã®ä»¶æ•°ãŒã‚¼ãƒã® <literal>User interface "
"with a filter:"
msgstr ""
"コレクションã¯ãƒ•ã‚£ãƒ«ã‚¿ä»˜ã <literal>Query インターフェースを使用ã™"
"ã‚‹ã“ã¨ã§ãƒšãƒ¼ã‚¸ã‚’ã¤ã‘ã‚‹ã“ã¨ãŒã§ãã¾ã™:"
#. Tag: para
#, no-c-format
msgid "Collection elements can be ordered or grouped using a query filter:"
msgstr ""
"コレクションã®è¦ç´ ã¯ã‚¯ã‚¨ãƒªãƒ•ã‚£ãƒ«ã‚¿ã‚’使ã£ã¦ã€ä¸¦ã¹æ›¿ãˆã‚„グループ分ã‘ãŒå‡ºæ¥ã¾ã™:"
#. Tag: para
#, no-c-format
msgid "You can find the size of a collection without initializing it:"
msgstr "コレクションをåˆæœŸåŒ–ã›ãšã«ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã®ã‚µã‚¤ã‚ºã‚’å¾—ã‚‹ã“ã¨ãŒã§ãã¾ã™:"
#. Tag: title
#, no-c-format
msgid "Components"
msgstr "コンãƒãƒ¼ãƒãƒ³ãƒˆ"
#. Tag: para
#, no-c-format
msgid ""
"Components can be used similarly to the simple value types that are used in "
"HQL queries. They can appear in the <literal>select clause as "
"follows:"
msgstr ""
"HQL クエリã§ã‚·ãƒ³ãƒ—ルãªå€¤åž‹ã‚’使用ã§ãã‚‹ã®ã§ã€ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã¯ã€ã‚らゆる点ã§ä½¿"
"用ã§ãã¾ã™ã€‚ã“れ㯠<literal>select 節ã®ä¸ã«ç¾ã‚ã‚Œã¾ã™:"
#. Tag: para
#, no-c-format
msgid ""
"where the Person's name property is a component. Components can also be used "
"in the <literal>where clause:"
msgstr ""
"人åã®ãƒ—ãƒãƒ‘ティãŒã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã®å ´æ‰€ã€‚コンãƒãƒ¼ãƒãƒ³ãƒˆã¯ã€ <literal>where clause:"
msgstr "コンãƒãƒ¼ãƒãƒ³ãƒˆã¯ <literal>order by 節ã§ã‚‚使用å¯èƒ½ã§ã™:"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Another common use of components is in <link linkend=\"queryhql-tuple\">row "
"value constructors</link>."
msgstr ""
"コンãƒãƒ¼ãƒãƒ³ãƒˆã®ä»–ã®ä¸€èˆ¬çš„ãªä½¿ç”¨ã¯ã€ <xref linkend=\"queryhql-tuple\"/> 行値"
"コンストラクタã«ã‚ã‚Šã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Row value constructor syntax"
msgstr "行値コンストラクタ構文"
#. Tag: para
#, no-c-format
msgid ""
"HQL supports the use of ANSI SQL <literal>row value constructor "
"syntax, sometimes referred to AS <literal>tuple syntax, even "
"though the underlying database may not support that notion. Here, we are "
"generally referring to multi-valued comparisons, typically associated with "
"components. Consider an entity Person which defines a name component:"
msgstr ""
"下ã«ä½ç½®ã™ã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãŒ ANSI SQL <literal>row value constructor "
"構文 (<literal>tuple 構文ã¨ã‚ˆã°ã‚Œã‚‹ã“ã¨ã‚‚ã‚ã‚Šã¾ã™) をサãƒãƒ¼ãƒˆã—ã¦ã„"
"ãªã„ã¨ã—ã¦ã‚‚〠HQL ã¯ãã®ä½¿ç”¨ã‚’サãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ã€‚ã“ã“ã§ã¯ã€ä¸€èˆ¬çš„ã«ã‚³ãƒ³ãƒãƒ¼"
"ãƒãƒ³ãƒˆã¨é€£ç¹‹ã™ã‚‹ãƒžãƒ«ãƒãƒãƒªãƒ¥ãƒ¼æ¯”較ã«ã¤ã„ã¦è§¦ã‚Œã¾ã™ã€‚ãƒãƒ¼ãƒ コンãƒãƒ¼ãƒãƒ³ãƒˆã‚’定"
"義ã™ã‚‹ Person エンティティを考ãˆã¾ã—ょã†:"
#. Tag: para
#, no-c-format
msgid ""
"That is valid syntax although it is a little verbose. You can make this more "
"concise by using <literal>row value constructor syntax:"
msgstr ""
"ãã‚Œã¯å°‘々詳細ã«ãªã‚Šã¾ã™ãŒã€æœ‰åŠ¹ãªæ§‹æ–‡ã§ã™ã€‚より簡潔ã«ã—〠<literal>row "
"value constructor</literal> 構文を使用ã™ã‚‹ã®ãŒã‚ˆã„ã§ã—ょã†:"
#. Tag: para
#, no-c-format
msgid ""
"It can also be useful to specify this in the <literal>select "
"clause:"
msgstr "ãれを <literal>select 節ã§æŒ‡å®šã™ã‚‹ã®ã‚‚効果的ã§ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"Using <literal>row value constructor syntax can also be beneficial "
"when using subqueries that need to compare against multiple values:"
msgstr ""
"次㫠<literal>row value constructor 構文ã®ä½¿ç”¨ãŒæœ‰åŠ¹ãªã¨ãã¯ã€ã‚µãƒ–"
"クエリを使用ã—ã¦è¤‡æ•°ã®å€¤ã¨æ¯”較ã™ã‚‹å¿…è¦ãŒã‚ã‚‹ã¨ãã§ã™:"
#. Tag: para
#, no-c-format
msgid ""
"One thing to consider when deciding if you want to use this syntax, is that "
"the query will be dependent upon the ordering of the component sub-"
"properties in the metadata."
msgstr ""
"ã“ã®æ§‹æ–‡ã‚’使用ã™ã‚‹ã‹ã©ã†ã‹æ±ºå®šã™ã‚‹ã¨ãã«è€ƒæ…®ã—ãªã‘ã‚Œã°ãªã‚‰ãªã„ã“ã¨ã¯ã€ã‚¯ã‚¨ãƒª"
"ãŒãƒ¡ã‚¿ãƒ‡ãƒ¼ã‚¿å†…ã®ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã®ã‚µãƒ–プãƒãƒ‘ティã®é †ç•ªã«ä¾å˜ã—ã¦ã„ã‚‹ã“ã¨ã§ã™ã€‚"
#, fuzzy
#~ msgid "<![CDATA[from eg.Cat]]>"
#~ msgstr "from eg.Cat"
#, fuzzy
#~ msgid "<![CDATA[from Cat]]>"
#~ msgstr "from eg.Cat"
#, fuzzy
#~ msgid "<![CDATA[from Cat as cat]]>"
#~ msgstr "from Cat as cat"
#, fuzzy
#~ msgid "<![CDATA[from Cat cat]]>"
#~ msgstr "from Cat cat"
#, fuzzy
#~ msgid "<![CDATA[from Formula, Parameter]]>"
#~ msgstr "from Formula, Parameter"
#, fuzzy
#~ msgid "<![CDATA[from Formula as form, Parameter as param]]>"
#~ msgstr "from Formula as form, Parameter as param"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Cat as cat\n"
#~ " inner join cat.mate as mate\n"
#~ " left outer join cat.kittens as kitten]]>"
#~ msgstr ""
#~ "from Cat as cat\n"
#~ " inner join cat.mate as mate\n"
#~ " left outer join cat.kittens as kitten"
#, fuzzy
#~ msgid "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
#~ msgstr "from Cat as cat left join cat.mate.kittens as kittens"
#, fuzzy
#~ msgid "<![CDATA[from Formula form full join form.parameter param]]>"
#~ msgstr "from Formula form full join form.parameter param"
#~ msgid "inner join"
#~ msgstr "inner join"
#~ msgid "left outer join"
#~ msgstr "left outer join"
#, fuzzy
#~ msgid "right outer join"
#~ msgstr "left outer join"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Cat as cat\n"
#~ " join cat.mate as mate\n"
#~ " left join cat.kittens as kitten]]>"
#~ msgstr ""
#~ "from Cat as cat\n"
#~ " join cat.mate as mate\n"
#~ " left join cat.kittens as kitten"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Cat as cat\n"
#~ " left join cat.kittens as kitten\n"
#~ " with kitten.bodyWeight > 10.0]]>"
#~ msgstr ""
#~ "from Cat as cat\n"
#~ " left join cat.kittens as kitten\n"
#~ " with kitten.bodyWeight > 10.0"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Cat as cat\n"
#~ " inner join fetch cat.mate\n"
#~ " left join fetch cat.kittens]]>"
#~ msgstr ""
#~ "from Cat as cat\n"
#~ " inner join fetch cat.mate\n"
#~ " left join fetch cat.kittens"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Cat as cat\n"
#~ " inner join fetch cat.mate\n"
#~ " left join fetch cat.kittens child\n"
#~ " left join fetch child.kittens]]>"
#~ msgstr ""
#~ "from Cat as cat\n"
#~ " inner join fetch cat.mate\n"
#~ " left join fetch cat.kittens child\n"
#~ " left join fetch child.kittens"
#, fuzzy
#~ msgid "<![CDATA[from Document fetch all properties order by name]]>"
#~ msgstr "from Document fetch all properties order by name"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Document doc fetch all properties where lower(doc.name) "
#~ "like '%cats%']]>"
#~ msgstr ""
#~ "from Document doc fetch all properties where lower(doc.name) like '%"
#~ "cats%'"
#, fuzzy
#~ msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
#~ msgstr "from Cat as cat where cat.mate.name like '%s%'"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select mate\n"
#~ "from Cat as cat\n"
#~ " inner join cat.mate as mate]]>"
#~ msgstr ""
#~ "select mate\n"
#~ "from Cat as cat\n"
#~ " inner join cat.mate as mate"
#, fuzzy
#~ msgid "<![CDATA[select cat.mate from Cat cat]]>"
#~ msgstr "select cat.mate from Cat cat"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select cat.name from DomesticCat cat\n"
#~ "where cat.name like 'fri%']]>"
#~ msgstr ""
#~ "select cat.name from DomesticCat cat\n"
#~ "where cat.name like 'fri%'"
#, fuzzy
#~ msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"
#~ msgstr "select cust.name.firstName from Customer as cust"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select mother, offspr, mate.name\n"
#~ "from DomesticCat as mother\n"
#~ " inner join mother.mate as mate\n"
#~ " left outer join mother.kittens as offspr]]>"
#~ msgstr ""
#~ "select mother, offspr, mate.name\n"
#~ "from DomesticCat as mother\n"
#~ " inner join mother.mate as mate\n"
#~ " left outer join mother.kittens as offspr"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select new list(mother, offspr, mate.name)\n"
#~ "from DomesticCat as mother\n"
#~ " inner join mother.mate as mate\n"
#~ " left outer join mother.kittens as offspr]]>"
#~ msgstr ""
#~ "select new list(mother, offspr, mate.name)\n"
#~ "from DomesticCat as mother\n"
#~ " inner join mother.mate as mate\n"
#~ " left outer join mother.kittens as offspr"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select new Family(mother, mate, offspr)\n"
#~ "from DomesticCat as mother\n"
#~ " join mother.mate as mate\n"
#~ " left join mother.kittens as offspr]]>"
#~ msgstr ""
#~ "select new Family(mother, mate, offspr)\n"
#~ "from DomesticCat as mother\n"
#~ " join mother.mate as mate\n"
#~ " left join mother.kittens as offspr"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) "
#~ "as n\n"
#~ "from Cat cat]]>"
#~ msgstr ""
#~ "select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as n\n"
#~ "from Cat cat"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, "
#~ "count(*) as n )\n"
#~ "from Cat cat]]>"
#~ msgstr ""
#~ "select new map( max(bodyWeight) as max, min(bodyWeight) as min, count(*) "
#~ "as n )\n"
#~ "from Cat cat"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count"
#~ "(cat)\n"
#~ "from Cat cat]]>"
#~ msgstr ""
#~ "select avg(cat.weight), sum(cat.weight), max(cat.weight), count(cat)\n"
#~ "from Cat cat"
#~ msgid "count(*)"
#~ msgstr "count(*)"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select cat.weight + sum(kitten.weight)\n"
#~ "from Cat cat\n"
#~ " join cat.kittens kitten\n"
#~ "group by cat.id, cat.weight]]>"
#~ msgstr ""
#~ "select cat.weight + sum(kitten.weight)\n"
#~ "from Cat cat\n"
#~ " join cat.kittens kitten\n"
#~ "group by cat.id, cat.weight"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select firstName||' '||initial||' '||upper(lastName) from "
#~ "Person]]>"
#~ msgstr "select firstName||' '||initial||' '||upper(lastName) from Person"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select distinct cat.name from Cat cat\n"
#~ "\n"
#~ "select count(distinct cat.name), count(cat) from Cat cat]]>"
#~ msgstr ""
#~ "select distinct cat.name from Cat cat\n"
#~ "\n"
#~ "select count(distinct cat.name), count(cat) from Cat cat"
#, fuzzy
#~ msgid "<![CDATA[from java.lang.Object o]]>"
#~ msgstr "from java.lang.Object o"
#, fuzzy
#~ msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"
#~ msgstr "from Named n, Named m where n.name = m.name"
#, fuzzy
#~ msgid "<![CDATA[from Cat where name='Fritz']]>"
#~ msgstr "from Cat where name='Fritz'"
#, fuzzy
#~ msgid "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
#~ msgstr "from Cat as cat where cat.name='Fritz'"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select foo\n"
#~ "from Foo foo, Bar bar\n"
#~ "where foo.startDate = bar.date]]>"
#~ msgstr ""
#~ "select foo\n"
#~ "from Foo foo, Bar bar\n"
#~ "where foo.startDate = bar.date"
#, fuzzy
#~ msgid "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
#~ msgstr "from Cat cat where cat.mate.name is not null"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Foo foo\n"
#~ "where foo.bar.baz.customer.address.city is not null]]>"
#~ msgstr ""
#~ "from Foo foo\n"
#~ "where foo.bar.baz.customer.address.city is not null"
#, fuzzy
#~ msgid "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
#~ msgstr "from Cat cat, Cat rival where cat.mate = rival.mate"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select cat, mate\n"
#~ "from Cat cat, Cat mate\n"
#~ "where cat.mate = mate]]>"
#~ msgstr ""
#~ "select cat, mate\n"
#~ "from Cat cat, Cat mate\n"
#~ "where cat.mate = mate"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Cat as cat where cat.id = 123\n"
#~ "\n"
#~ "from Cat as cat where cat.mate.id = 69]]>"
#~ msgstr ""
#~ "from Cat as cat where cat.id = 123\n"
#~ "\n"
#~ "from Cat as cat where cat.mate.id = 69"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from bank.Person person\n"
#~ "where person.id.country = 'AU'\n"
#~ " and person.id.medicareNumber = 123456]]>"
#~ msgstr ""
#~ "from bank.Person person\n"
#~ "where person.id.country = 'AU'\n"
#~ " and person.id.medicareNumber = 123456"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from bank.Account account\n"
#~ "where account.owner.id.country = 'AU'\n"
#~ " and account.owner.id.medicareNumber = 123456]]>"
#~ msgstr ""
#~ "from bank.Account account\n"
#~ "where account.owner.id.country = 'AU'\n"
#~ " and account.owner.id.medicareNumber = 123456"
#, fuzzy
#~ msgid "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
#~ msgstr "from Cat cat where cat.class = DomesticCat"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from AuditLog log, Payment payment\n"
#~ "where log.item.class = 'Payment' and log.item.id = payment.id]]>"
#~ msgstr ""
#~ "from AuditLog log, Payment payment\n"
#~ "where log.item.class = 'Payment' and log.item.id = payment.id"
#, fuzzy
#~ msgid "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
#~ msgstr "from DomesticCat cat where cat.name between 'A' and 'B'"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
#~ msgstr "from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
#~ msgstr "from DomesticCat cat where cat.name not between 'A' and 'B'"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', "
#~ "'Baz' )]]>"
#~ msgstr "from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<property name=\"hibernate.query.substitutions\">true 1, false "
#~ "0</property>"
#, fuzzy
#~ msgid "<![CDATA[from Cat cat where cat.alive = true]]>"
#~ msgstr "from Cat cat where cat.alive = true"
#, fuzzy
#~ msgid "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
#~ msgstr "from Cat cat where cat.kittens.size > 0"
#, fuzzy
#~ msgid "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
#~ msgstr "from Cat cat where size(cat.kittens) > 0"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]"
#~ ">"
#~ msgstr "from Calendar cal where maxelement(cal.holidays) > current_date"
#, fuzzy
#~ msgid "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
#~ msgstr "from Order order where maxindex(order.items) > 100"
#, fuzzy
#~ msgid "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
#~ msgstr "from Order order where minelement(order.items) > 10000"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select mother from Cat as mother, Cat as kit\n"
#~ "where kit in elements(foo.kittens)]]>"
#~ msgstr ""
#~ "select mother from Cat as mother, Cat as kit\n"
#~ "where kit in elements(foo.kittens)"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select p from NameList list, Person p\n"
#~ "where p.name = some elements(list.names)]]>"
#~ msgstr ""
#~ "select p from NameList list, Person p\n"
#~ "where p.name = some elements(list.names)"
#, fuzzy
#~ msgid "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
#~ msgstr "from Cat cat where exists elements(cat.kittens)"
#, fuzzy
#~ msgid "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
#~ msgstr "from Player p where 3 > all elements(p.scores)"
#, fuzzy
#~ msgid "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
#~ msgstr "from Show show where 'fizard' in indices(show.acts)"
#, fuzzy
#~ msgid "<![CDATA[from Order order where order.items[0].id = 1234]]>"
#~ msgstr "from Order order where order.items[0].id = 1234"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select person from Person person, Calendar calendar\n"
#~ "where calendar.holidays['national day'] = person.birthDay\n"
#~ " and person.nationality.calendar = calendar]]>"
#~ msgstr ""
#~ "select person from Person person, Calendar calendar\n"
#~ "where calendar.holidays['national day'] = person.birthDay\n"
#~ " and person.nationality.calendar = calendar"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select item from Item item, Order order\n"
#~ "where order.items[ order.deliveredItemIndices[0] ] = item and order.id = "
#~ "11]]>"
#~ msgstr ""
#~ "select item from Item item, Order order\n"
#~ "where order.items[ order.deliveredItemIndices[0] ] = item and order.id = "
#~ "11"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select item from Item item, Order order\n"
#~ "where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
#~ msgstr ""
#~ "select item from Item item, Order order\n"
#~ "where order.items[ maxindex(order.items) ] = item and order.id = 11"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select item from Item item, Order order\n"
#~ "where order.items[ size(order.items) - 1 ] = item]]>"
#~ msgstr ""
#~ "select item from Item item, Order order\n"
#~ "where order.items[ size(order.items) - 1 ] = item"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select item, index(item) from Order order\n"
#~ " join order.items item\n"
#~ "where index(item) < 5]]>"
#~ msgstr ""
#~ "select item, index(item) from Order order\n"
#~ " join order.items item\n"
#~ "where index(item) < 5"
#, fuzzy
#~ msgid "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
#~ msgstr "from DomesticCat cat where upper(cat.name) like 'FRI%'"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select cust\n"
#~ "from Product prod,\n"
#~ " Store store\n"
#~ " inner join store.customers cust\n"
#~ "where prod.name = 'widget'\n"
#~ " and store.location.name in ( 'Melbourne', 'Sydney' )\n"
#~ " and prod = all elements(cust.currentOrder.lineItems)]]>"
#~ msgstr ""
#~ "select cust\n"
#~ "from Product prod,\n"
#~ " Store store\n"
#~ " inner join store.customers cust\n"
#~ "where prod.name = 'widget'\n"
#~ " and store.location.name in ( 'Melbourne', 'Sydney' )\n"
#~ " and prod = all elements(cust.currentOrder.lineItems)"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust."
#~ "current_order\n"
#~ "FROM customers cust,\n"
#~ " stores store,\n"
#~ " locations loc,\n"
#~ " store_customers sc,\n"
#~ " product prod\n"
#~ "WHERE prod.name = 'widget'\n"
#~ " AND store.loc_id = loc.id\n"
#~ " AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
#~ " AND sc.store_id = store.id\n"
#~ " AND sc.cust_id = cust.id\n"
#~ " AND prod.id = ALL(\n"
#~ " SELECT item.prod_id\n"
#~ " FROM line_items item, orders o\n"
#~ " WHERE item.order_id = o.id\n"
#~ " AND cust.current_order = o.id\n"
#~ " )]]>"
#~ msgstr ""
#~ "SELECT cust.name, cust.address, cust.phone, cust.id, cust.current_order\n"
#~ "FROM customers cust,\n"
#~ " stores store,\n"
#~ " locations loc,\n"
#~ " store_customers sc,\n"
#~ " product prod\n"
#~ "WHERE prod.name = 'widget'\n"
#~ " AND store.loc_id = loc.id\n"
#~ " AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
#~ " AND sc.store_id = store.id\n"
#~ " AND sc.cust_id = cust.id\n"
#~ " AND prod.id = ALL(\n"
#~ " SELECT item.prod_id\n"
#~ " FROM line_items item, orders o\n"
#~ " WHERE item.order_id = o.id\n"
#~ " AND cust.current_order = o.id\n"
#~ " )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from DomesticCat cat\n"
#~ "order by cat.name asc, cat.weight desc, cat.birthdate]]>"
#~ msgstr ""
#~ "from DomesticCat cat\n"
#~ "order by cat.name asc, cat.weight desc, cat.birthdate"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
#~ "from Cat cat\n"
#~ "group by cat.color]]>"
#~ msgstr ""
#~ "select cat.color, sum(cat.weight), count(cat)\n"
#~ "from Cat cat\n"
#~ "group by cat.color"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select foo.id, avg(name), max(name)\n"
#~ "from Foo foo join foo.names name\n"
#~ "group by foo.id]]>"
#~ msgstr ""
#~ "select foo.id, avg(name), max(name)\n"
#~ "from Foo foo join foo.names name\n"
#~ "group by foo.id"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
#~ "from Cat cat\n"
#~ "group by cat.color\n"
#~ "having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
#~ msgstr ""
#~ "select cat.color, sum(cat.weight), count(cat)\n"
#~ "from Cat cat\n"
#~ "group by cat.color\n"
#~ "having cat.color in (eg.Color.TABBY, eg.Color.BLACK)"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select cat\n"
#~ "from Cat cat\n"
#~ " join cat.kittens kitten\n"
#~ "group by cat.id, cat.name, cat.other, cat.properties\n"
#~ "having avg(kitten.weight) > 100\n"
#~ "order by count(kitten) asc, sum(kitten.weight) desc]]>"
#~ msgstr ""
#~ "select cat\n"
#~ "from Cat cat\n"
#~ " join cat.kittens kitten\n"
#~ "group by cat.id, cat.name, cat.other, cat.properties\n"
#~ "having avg(kitten.weight) > 100\n"
#~ "order by count(kitten) asc, sum(kitten.weight) desc"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Cat as fatcat\n"
#~ "where fatcat.weight > (\n"
#~ " select avg(cat.weight) from DomesticCat cat\n"
#~ ")]]>"
#~ msgstr ""
#~ "from Cat as fatcat\n"
#~ "where fatcat.weight > (\n"
#~ " select avg(cat.weight) from DomesticCat cat\n"
#~ ")"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from DomesticCat as cat\n"
#~ "where cat.name = some (\n"
#~ " select name.nickName from Name as name\n"
#~ ")]]>"
#~ msgstr ""
#~ "from DomesticCat as cat\n"
#~ "where cat.name = some (\n"
#~ " select name.nickName from Name as name\n"
#~ ")"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Cat as cat\n"
#~ "where not exists (\n"
#~ " from Cat as mate where mate.mate = cat\n"
#~ ")]]>"
#~ msgstr ""
#~ "from Cat as cat\n"
#~ "where not exists (\n"
#~ " from Cat as mate where mate.mate = cat\n"
#~ ")"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from DomesticCat as cat\n"
#~ "where cat.name not in (\n"
#~ " select name.nickName from Name as name\n"
#~ ")]]>"
#~ msgstr ""
#~ "from DomesticCat as cat\n"
#~ "where cat.name not in (\n"
#~ " select name.nickName from Name as name\n"
#~ ")"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
#~ "from Cat as cat]]>"
#~ msgstr ""
#~ "select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
#~ "from Cat as cat"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select order.id, sum(price.amount), count(item)\n"
#~ "from Order as order\n"
#~ " join order.lineItems as item\n"
#~ " join item.product as product,\n"
#~ " Catalog as catalog\n"
#~ " join catalog.prices as price\n"
#~ "where order.paid = false\n"
#~ " and order.customer = :customer\n"
#~ " and price.product = product\n"
#~ " and catalog.effectiveDate < sysdate\n"
#~ " and catalog.effectiveDate >= all (\n"
#~ " select cat.effectiveDate\n"
#~ " from Catalog as cat\n"
#~ " where cat.effectiveDate < sysdate\n"
#~ " )\n"
#~ "group by order\n"
#~ "having sum(price.amount) > :minAmount\n"
#~ "order by sum(price.amount) desc]]>"
#~ msgstr ""
#~ "select order.id, sum(price.amount), count(item)\n"
#~ "from Order as order\n"
#~ " join order.lineItems as item\n"
#~ " join item.product as product,\n"
#~ " Catalog as catalog\n"
#~ " join catalog.prices as price\n"
#~ "where order.paid = false\n"
#~ " and order.customer = :customer\n"
#~ " and price.product = product\n"
#~ " and catalog.effectiveDate < sysdate\n"
#~ " and catalog.effectiveDate >= all (\n"
#~ " select cat.effectiveDate\n"
#~ " from Catalog as cat\n"
#~ " where cat.effectiveDate < sysdate\n"
#~ " )\n"
#~ "group by order\n"
#~ "having sum(price.amount) > :minAmount\n"
#~ "order by sum(price.amount) desc"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select order.id, sum(price.amount), count(item)\n"
#~ "from Order as order\n"
#~ " join order.lineItems as item\n"
#~ " join item.product as product,\n"
#~ " Catalog as catalog\n"
#~ " join catalog.prices as price\n"
#~ "where order.paid = false\n"
#~ " and order.customer = :customer\n"
#~ " and price.product = product\n"
#~ " and catalog = :currentCatalog\n"
#~ "group by order\n"
#~ "having sum(price.amount) > :minAmount\n"
#~ "order by sum(price.amount) desc]]>"
#~ msgstr ""
#~ "select order.id, sum(price.amount), count(item)\n"
#~ "from Order as order\n"
#~ " join order.lineItems as item\n"
#~ " join item.product as product,\n"
#~ " Catalog as catalog\n"
#~ " join catalog.prices as price\n"
#~ "where order.paid = false\n"
#~ " and order.customer = :customer\n"
#~ " and price.product = product\n"
#~ " and catalog = :currentCatalog\n"
#~ "group by order\n"
#~ "having sum(price.amount) > :minAmount\n"
#~ "order by sum(price.amount) desc"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select count(payment), status.name\n"
#~ "from Payment as payment\n"
#~ " join payment.currentStatus as status\n"
#~ " join payment.statusChanges as statusChange\n"
#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
#~ " or (\n"
#~ " statusChange.timeStamp = (\n"
#~ " select max(change.timeStamp)\n"
#~ " from PaymentStatusChange change\n"
#~ " where change.payment = payment\n"
#~ " )\n"
#~ " and statusChange.user <> :currentUser\n"
#~ " )\n"
#~ "group by status.name, status.sortOrder\n"
#~ "order by status.sortOrder]]>"
#~ msgstr ""
#~ "select count(payment), status.name\n"
#~ "from Payment as payment\n"
#~ " join payment.currentStatus as status\n"
#~ " join payment.statusChanges as statusChange\n"
#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
#~ " or (\n"
#~ " statusChange.timeStamp = (\n"
#~ " select max(change.timeStamp)\n"
#~ " from PaymentStatusChange change\n"
#~ " where change.payment = payment\n"
#~ " )\n"
#~ " and statusChange.user <> :currentUser\n"
#~ " )\n"
#~ "group by status.name, status.sortOrder\n"
#~ "order by status.sortOrder"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select count(payment), status.name\n"
#~ "from Payment as payment\n"
#~ " join payment.currentStatus as status\n"
#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
#~ " or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :"
#~ "currentUser\n"
#~ "group by status.name, status.sortOrder\n"
#~ "order by status.sortOrder]]>"
#~ msgstr ""
#~ "select count(payment), status.name\n"
#~ "from Payment as payment\n"
#~ " join payment.currentStatus as status\n"
#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
#~ " or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <"
#~ "> :currentUser\n"
#~ "group by status.name, status.sortOrder\n"
#~ "order by status.sortOrder"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select account, payment\n"
#~ "from Account as account\n"
#~ " left outer join account.payments as payment\n"
#~ "where :currentUser in elements(account.holder.users)\n"
#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
#~ "PaymentStatus.UNPAID)\n"
#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
#~ msgstr ""
#~ "select account, payment\n"
#~ "from Account as account\n"
#~ " left outer join account.payments as payment\n"
#~ "where :currentUser in elements(account.holder.users)\n"
#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
#~ "PaymentStatus.UNPAID)\n"
#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select account, payment\n"
#~ "from Account as account\n"
#~ " join account.holder.users as user\n"
#~ " left outer join account.payments as payment\n"
#~ "where :currentUser = user\n"
#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
#~ "PaymentStatus.UNPAID)\n"
#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
#~ msgstr ""
#~ "select account, payment\n"
#~ "from Account as account\n"
#~ " join account.holder.users as user\n"
#~ " left outer join account.payments as payment\n"
#~ "where :currentUser = user\n"
#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
#~ "PaymentStatus.UNPAID)\n"
#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
#~ "iterate().next() ).intValue()]]>"
#~ msgstr ""
#~ "( (Integer) session.iterate(\"select count(*) from ....\").next() )."
#~ "intValue()"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select usr.id, usr.name\n"
#~ "from User as usr\n"
#~ " left join usr.messages as msg\n"
#~ "group by usr.id, usr.name\n"
#~ "order by count(msg)]]>"
#~ msgstr ""
#~ "select usr.id, usr.name\n"
#~ "from User as usr\n"
#~ " left join usr.messages as msg\n"
#~ "group by usr.id, usr.name\n"
#~ "order by count(msg)"
#, fuzzy
#~ msgid "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
#~ msgstr "from User usr where size(usr.messages) >= 1"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select usr.id, usr.name\n"
#~ "from User usr.name\n"
#~ " join usr.messages msg\n"
#~ "group by usr.id, usr.name\n"
#~ "having count(msg) >= 1]]>"
#~ msgstr ""
#~ "select usr.id, usr.name\n"
#~ "from User usr.name\n"
#~ " join usr.messages msg\n"
#~ "group by usr.id, usr.name\n"
#~ "having count(msg) >= 1"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[select usr.id, usr.name\n"
#~ "from User as usr\n"
#~ " left join usr.messages as msg\n"
#~ "group by usr.id, usr.name\n"
#~ "having count(msg) = 0]]>"
#~ msgstr ""
#~ "select usr.id, usr.name\n"
#~ "from User as usr\n"
#~ " left join usr.messages as msg\n"
#~ "group by usr.id, usr.name\n"
#~ "having count(msg) = 0"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:"
#~ "name and foo.size=:size\");\n"
#~ "q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
#~ "List foos = q.list();]]>"
#~ msgstr ""
#~ "Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name and "
#~ "foo.size=:size\");\n"
#~ "q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
#~ "List foos = q.list();"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial "
#~ "filter\n"
#~ "q.setMaxResults(PAGE_SIZE);\n"
#~ "q.setFirstResult(PAGE_SIZE * pageNumber);\n"
#~ "List page = q.list();]]>"
#~ msgstr ""
#~ "Query q = s.createFilter( collection, \"\" ); // the trivial filter\n"
#~ "q.setMaxResults(PAGE_SIZE);\n"
#~ "q.setFirstResult(PAGE_SIZE * pageNumber);\n"
#~ "List page = q.list();"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[Collection orderedCollection = s.filter( collection, \"order by "
#~ "this.amount\" );\n"
#~ "Collection counts = s.filter( collection, \"select this.type, count(this) "
#~ "group by this.type\" );]]>"
#~ msgstr ""
#~ "Collection orderedCollection = s.filter( collection, \"order by this."
#~ "amount\" );\n"
#~ "Collection counts = s.filter( collection, \"select this.type, count(this) "
#~ "group by this.type\" );"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
#~ "iterate().next() ).intValue();]]>"
#~ msgstr ""
#~ "( (Integer) session.iterate(\"select count(*) from ....\").next() )."
#~ "intValue();"
#, fuzzy
#~ msgid "<![CDATA[select p.name from Person p]]>"
#~ msgstr "select p.name from from Person p"
#, fuzzy
#~ msgid "<![CDATA[select p.name.first from Person p]]>"
#~ msgstr "select p.name.first from from Person p"
#, fuzzy
#~ msgid "<![CDATA[from Person p where p.name = :name]]>"
#~ msgstr "from from Person p where p.name = :name"
#, fuzzy
#~ msgid "<![CDATA[from Person p where p.name.first = :firstName]]>"
#~ msgstr "from from Person p where p.name.first = :firstName"
#, fuzzy
#~ msgid "<![CDATA[from Person p order by p.name]]>"
#~ msgstr "from from Person p order by p.name"
#, fuzzy
#~ msgid "<![CDATA[from Person p order by p.name.first]]>"
#~ msgstr "from from Person p order by p.name.first"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Person p where p.name.first='John' and p.name."
#~ "last='Jingleheimer-Schmidt']]>"
#~ msgstr ""
#~ "from Person p where p.name.first='John' and p.name.last='Jingleheimer-"
#~ "Schmidt'"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
#~ msgstr "from Person p where p.name=('John', 'Jingleheimer-Schmidt')"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[from Cat as cat\n"
#~ "where not ( cat.name, cat.color ) in (\n"
#~ " select cat.name, cat.color from DomesticCat cat\n"
#~ ")]]>"
#~ msgstr ""
#~ "from Cat as cat\n"
#~ "where not ( cat.name, cat.color ) in (\n"
#~ " select cat.name, cat.color from DomesticCat cat\n"
#~ ")"
Other Hibernate examples (source code examples)
Here is a short list of links related to this Hibernate query_hql.po source code file:
|