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

📄 query_hql.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 5 页
字号:
msgid """The <literal>implicit</literal> form does not use the join keyword. Instead, ""the associations are \"dereferenced\" using dot-notation. <literal>implicit</""literal> joins can appear in any of the HQL clauses. <literal>implicit</""literal> join result in inner joins in the resulting SQL statement."msgstr """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."#: index.docbook:202msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"msgstr "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"#: index.docbook:206msgid "Refering to identifier property"msgstr "Refering to identifier property"#: index.docbook:208msgid """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:"#: index.docbook:213msgid """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>."#: index.docbook:220msgid """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."#: index.docbook:226msgid """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."#: index.docbook:233msgid """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."#: index.docbook:242msgid "The select clause"msgstr "La cl&#x00e1;usula select"#: index.docbook:244msgid """The <literal>select</literal> clause picks which objects and properties to ""return in the query result set. Consider:"msgstr """La cl&#x00e1;usula <literal>select</literal> escoge qu&#x00e9; objetos y ""propiedades devolver in el conjunto resultado de la consulta. Considera:"#: index.docbook:249msgid """<![CDATA[select mate\n""from Cat as cat\n""    inner join cat.mate as mate]]>"msgstr """<![CDATA[select mate \n""from Cat as cat \n""    inner join cat.mate as mate]]>"#: index.docbook:251msgid """The query will select <literal>mate</literal>s of other <literal>Cat</""literal>s. Actually, you may express this query more compactly as:"msgstr """La consulta seleccionar&#x00e1; <literal>mate</literal>s de otros ""<literal>Cat</literal>s. Realmente, puedes expresar esta consulta en un ""forma m&#x00e1;s compacta como:"#: index.docbook:256msgid "<![CDATA[select cat.mate from Cat cat]]>"msgstr "<![CDATA[select cat.mate from Cat cat]]>"#: index.docbook:258msgid """Queries may return properties of any value type including properties of ""component type:"msgstr """Las consultas pueden devolver propiedades de cualquier tipo de valor ""incluyendo propiedades de tipo componente:"#: index.docbook:262msgid """<![CDATA[select cat.name from DomesticCat cat\n""where cat.name like 'fri%']]>"msgstr """<![CDATA[select cat.name from DomesticCat cat\n""where cat.name like 'fri%']]>"#: index.docbook:264msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"msgstr "<![CDATA[select cust.name.firstName from Customer as cust]]>"#: index.docbook:266msgid """Queries may return multiple objects and/or properties as an array of type ""<literal>Object[]</literal>,"msgstr """Las consultas pueden devolver m&#x00fa;ltiples objetos y/o propiedades como ""un array de tipo <literal>Object[]</literal>,"#: index.docbook:271msgid """<![CDATA[select mother, offspr, mate.name\n""from DomesticCat as mother\n""    inner join mother.mate as mate\n""    left outer join mother.kittens as offspr]]>"msgstr """<![CDATA[select mother, offspr, mate.name \n""from DomesticCat as mother\n""    inner join mother.mate as mate\n""    left outer join mother.kittens as offspr]]>"#: index.docbook:273msgid "or as a <literal>List</literal>,"msgstr "o como una <literal>List</literal>,"#: index.docbook:277msgid """<![CDATA[select new list(mother, offspr, mate.name)\n""from DomesticCat as mother\n""    inner join mother.mate as mate\n""    left outer join mother.kittens as offspr]]>"msgstr """<![CDATA[select new list(mother, offspr, mate.name)\n""from DomesticCat as mother\n""    inner join mother.mate as mate\n""    left outer join mother.kittens as offspr]]>"#: index.docbook:279msgid "or as an actual typesafe Java object,"msgstr "o como un objeto real Java de tipo seguro,"#: index.docbook:283msgid """<![CDATA[select new Family(mother, mate, offspr)\n""from DomesticCat as mother\n""    join mother.mate as mate\n""    left join mother.kittens as offspr]]>"msgstr """<![CDATA[select new Family(mother, mate, offspr)\n""from DomesticCat as mother\n""    join mother.mate as mate\n""    left join mother.kittens as offspr]]>"#: index.docbook:285msgid """assuming that the class <literal>Family</literal> has an appropriate ""constructor."msgstr """asumiendo que la clase <literal>Family</literal> tiene un constructor ""apropiado."#: index.docbook:289msgid """You may assign aliases to selected expressions using <literal>as</literal>:"msgstr """Puedes asignar aliases para seleccionar expresiones usando <literal>as</""literal>:"#: index.docbook:293msgid """<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as ""n\n""from Cat cat]]>"msgstr """<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as ""n\n""from Cat cat]]>"#: index.docbook:295msgid """This is most useful when used together with <literal>select new map</""literal>:"msgstr """Esto es lo m&#x00e1;s &#x00fa;til cuando se usa junto con <literal>select ""new map</literal>:"#: index.docbook:299msgid """<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, ""count(*) as n )\n""from Cat cat]]>"msgstr """<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, ""count(*) as n )\n""from Cat cat]]>"#: index.docbook:301msgid """This query returns a <literal>Map</literal> from aliases to selected values."msgstr """Esta consulta devuelve un <literal>Map</literal> de aliases a valores ""seleccionados."#: index.docbook:308msgid "Aggregate functions"msgstr "Funciones de agregaci&#x00f3;n"#: index.docbook:310msgid """HQL queries may even return the results of aggregate functions on properties:"msgstr """Las consultas HQL pueden incluso devolver resultados de funciones de ""agregaci&#x00f3;n sobre propiedades:"#: index.docbook:314msgid """<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count""(cat)\n""from Cat cat]]>"msgstr """<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count""(cat)\n""from Cat cat]]>"#: index.docbook:325msgid "The supported aggregate functions are"msgstr "Las funciones de agregaci&#x00f3;n soportadas son"#: index.docbook:332msgid "avg(...), sum(...), min(...), max(...)"msgstr "avg(...), sum(...), min(...), max(...)"#: index.docbook:337msgid "count(*)"msgstr "count(*)"#: index.docbook:342msgid "count(...), count(distinct ...), count(all...)"msgstr "count(...), count(distinct ...), count(all...)"#: index.docbook:347msgid """You may use arithmetic operators, concatenation, and recognized SQL ""functions in the select clause:"msgstr """Puedes usar operadores aritm&#x00e9;ticos, concatenaci&#x00f3;n, y funciones ""SQL reconocidas en la cl&#x00e1;usula select:"#: index.docbook:352msgid """<![CDATA[select cat.weight + sum(kitten.weight)\n""from Cat cat\n""    join cat.kittens kitten\n""group by cat.id, cat.weight]]>"msgstr """<![CDATA[select cat.weight + sum(kitten.weight) \n""from Cat cat \n""    join cat.kittens kitten\n""group by cat.id, cat.weight]]>"#: index.docbook:354msgid """<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"msgstr """<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"#: index.docbook:356msgid """The <literal>distinct</literal> and <literal>all</literal> keywords may be ""used and have the same semantics as in SQL."msgstr """Las palabras clave <literal>distinct</literal> y <literal>all</literal> ""pueden ser usadas y tienen las misma sem&#x00e1;ntica que en SQL."#: index.docbook:361msgid """<![CDATA[select distinct cat.name from Cat cat\n""\n""select count(distinct cat.name), count(cat) from Cat cat]]>"msgstr """<![CDATA[select distinct cat.name from Cat cat\n""\n""select count(distinct cat.name), count(cat) from Cat cat]]>"#: index.docbook:366msgid "Polymorphic queries"msgstr "Consultas polim&#x00f3;rficas"#: index.docbook:368msgid "A query like:"msgstr "Una consulta como:"#: index.docbook:374msgid """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 """devuelve instancias no s&#x00f3;lo de <literal>Cat</literal>, sino ""tambi&#x00e9;n de subclases como <literal>DomesticCat</literal>. Las ""consultas de Hibernate pueden mencionar <emphasis>cualquier</emphasis> clase ""o interface Java en la cl&#x00e1;usula <literal>from</literal>. La consulta ""devolver&#x00e1; instancias de todas las clases persistentes que extiendan ""esa clase o implementen la interface. La siguiente consulta devolver&#x00ed;""a todos los objetos persistentes."#: index.docbook:382msgid "<![CDATA[from java.lang.Object o]]>"msgstr "<![CDATA[from java.lang.Object o]]>"#: index.docbook:384msgid """The interface <literal>Named</literal> might be implemented by various ""persistent classes:"msgstr """La interface <literal>Named</literal> podr&#x00ed;a ser implementada por ""varias clases persistentes:"#: index.docbook:389msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"msgstr "<![CDATA[from Named n, Named m where n.name = m.name]]>"#: index.docbook:391msgid """Note that these last two queries will require more than one SQL ""<literal>SELECT</literal>. This means that the <literal>order by</literal> ""clause does not correctly order the whole result set. (It also means you "

⌨️ 快捷键说明

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