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

📄 query_criteria.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 3 页
字号:
#, fuzzymsgid ""msgstr """PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Content-Type: text/plain; charset=utf-8\n"#: index.docbook:5msgid "Criteria Queries"msgstr "Consultas por Criterios"#: index.docbook:7msgid "Hibernate features an intuitive, extensible criteria query API."msgstr """Acompa&#x00f1;a a Hibernate una API de consultas por criterios intuitiva y ""extensible."#: index.docbook:12msgid "Creating a <literal>Criteria</literal> instance"msgstr "Creando una instancia de <literal>Criteria</literal>"#: index.docbook:14msgid """The interface <literal>org.hibernate.Criteria</literal> represents a query ""against a particular persistent class. The <literal>Session</literal> is a ""factory for <literal>Criteria</literal> instances."msgstr """La interface <literal>org.hibernate.Criteria</literal> representa una ""consulta contra una clase persistente en particular. La <literal>Session</""literal> es una f&#x00e1;brica de instancias de <literal>Criteria</literal>."#: index.docbook:20msgid """<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n""crit.setMaxResults(50);\n""List cats = crit.list();]]>"msgstr """<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n""crit.setMaxResults(50);\n""List cats = crit.list();]]>"#: index.docbook:25msgid "Narrowing the result set"msgstr "Estrechando el conjunto resultado"#: index.docbook:27msgid """An individual query criterion is an instance of the interface <literal>org.""hibernate.criterion.Criterion</literal>. The class <literal>org.hibernate.""criterion.Restrictions</literal> defines factory methods for obtaining ""certain built-in <literal>Criterion</literal> types."msgstr """Un criterio individual de consulta es una instancia de la interface ""<literal>org.hibernate.criterion.Criterion</literal>. La clase <literal>org.""hibernate.criterion.Restrictions</literal> define m&#x00e9;todos de f&#x00e1;""brica para obtener ciertos tipos prefabricados de <literal>Criterion</""literal>."#: index.docbook:35msgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"Fritz%\") )\n""    .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n""    .list();]]>"msgstr """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"Fritz%\") )\n""    .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n""    .list();]]>"#: index.docbook:37msgid "Restrictions may be grouped logically."msgstr "Las restricciones pueden ser agrupadas l&#x00f3;gicamente."#: index.docbook:41msgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"Fritz%\") )\n""    .add( Restrictions.or(\n""        Restrictions.eq( \"age\", new Integer(0) ),\n""        Restrictions.isNull(\"age\")\n""    ) )\n""    .list();]]>"msgstr """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"Fritz%\") )\n""    .add( Restrictions.or(\n""        Restrictions.eq( \"age\", new Integer(0) ),\n""        Restrictions.isNull(\"age\")\n""    ) )\n""    .list();]]>"#: index.docbook:43msgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk""\" } ) )\n""    .add( Restrictions.disjunction()\n""        .add( Restrictions.isNull(\"age\") )\n""        .add( Restrictions.eq(\"age\", new Integer(0) ) )\n""        .add( Restrictions.eq(\"age\", new Integer(1) ) )\n""        .add( Restrictions.eq(\"age\", new Integer(2) ) )\n""    ) )\n""    .list();]]>"msgstr """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk""\" } ) )\n""    .add( Restrictions.disjunction()\n""        .add( Restrictions.isNull(\"age\") )\n""        .add( Restrictions.eq(\"age\", new Integer(0) ) )\n""        .add( Restrictions.eq(\"age\", new Integer(1) ) )\n""        .add( Restrictions.eq(\"age\", new Integer(2) ) )\n""    ) )\n""    .list();]]>"#: index.docbook:45msgid """There are quite a range of built-in criterion types (<literal>Restrictions</""literal> subclasses), but one that is especially useful lets you specify SQL ""directly."msgstr """Hay un gran rango de tipos de criterio prefabricados (subclases de ""<literal>Restrictions</literal>), pero uno que es especialmente útil te deja ""especificar SQL directamente."#: index.docbook:50msgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)\", ""\"Fritz%\", Hibernate.STRING) )\n""    .list();]]>"msgstr """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.sql(\"lower({alias}.name) like lower(?)\", \"Fritz%""\", Hibernate.STRING) )\n""    .list();]]>"#: index.docbook:52msgid """The <literal>{alias}</literal> placeholder with be replaced by the row alias ""of the queried entity."msgstr """El sitio <literal>{alias}</literal> ser&#x00e1; remplazado por el alias de ""fila de la entidad consultada."#: index.docbook:57msgid """An alternative approach to obtaining a criterion is to get it from a ""<literal>Property</literal> instance. You can create a <literal>Property</""literal> by calling <literal>Property.forName()</literal>."msgstr """Un enfoque alternativo para obtener un criterio es tomarlo de una instancia ""de <literal>Property</literal>. Puedes crear una <literal>Property</literal> ""llamando a <literal>Property.forName()</literal>."#: index.docbook:63msgid """<![CDATA[\n""Property age = Property.forName(\"age\");\n""List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.disjunction()\n""        .add( age.isNull() )\n""        .add( age.eq( new Integer(0) ) )\n""        .add( age.eq( new Integer(1) ) )\n""        .add( age.eq( new Integer(2) ) )\n""    ) )\n""    .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", ""\"Pk\" } ) )\n""    .list();]]>"msgstr """<![CDATA[\n""Property age = Property.forName(\"age\");\n""List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.disjunction()\n""        .add( age.isNull() )\n""        .add( age.eq( new Integer(0) ) )\n""        .add( age.eq( new Integer(1) ) )\n""        .add( age.eq( new Integer(2) ) )\n""    ) )\n""    .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", ""\"Pk\" } ) )\n""    .list();]]>"#: index.docbook:68msgid "Ordering the results"msgstr "Ordenando los resultados"#: index.docbook:70msgid """You may order the results using <literal>org.hibernate.criterion.Order</""literal>."msgstr """Puedes ordenar los resultados usando <literal>org.hibernate.criterion.Order</""literal>."#: index.docbook:74msgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"F%\")\n""    .addOrder( Order.asc(\"name\") )\n""    .addOrder( Order.desc(\"age\") )\n""    .setMaxResults(50)\n""    .list();]]>"msgstr """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"F%\")\n""    .addOrder( Order.asc(\"name\") )\n""    .addOrder( Order.desc(\"age\") )\n""    .setMaxResults(50)\n""    .list();]]>"#: index.docbook:76msgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Property.forName(\"name\").like(\"F%\") )\n""    .addOrder( Property.forName(\"name\").asc() )\n""    .addOrder( Property.forName(\"age\").desc() )\n""    .setMaxResults(50)\n""    .list();]]>"msgstr """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Property.forName(\"name\").like(\"F%\") )\n""    .addOrder( Property.forName(\"name\").asc() )\n""    .addOrder( Property.forName(\"age\").desc() )\n""    .setMaxResults(50)\n""    .list();]]>"#: index.docbook:81msgid "Associations"msgstr "Asociaciones"#: index.docbook:83msgid """You may easily specify constraints upon related entities by navigating ""associations using <literal>createCriteria()</literal>."msgstr """Puedes especificar f&#x00e1;cilmente restricciones sobre las entidades ""relacionadas al navegar asociaciones usando <literal>createCriteria()</""literal>."#: index.docbook:88msgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"F%\") )\n""    .createCriteria(\"kittens\")\n""        .add( Restrictions.like(\"name\", \"F%\") )\n""    .list();]]>"msgstr """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"F%\")\n""    .createCriteria(\"kittens\")\n""        .add( Restrictions.like(\"name\", \"F%\")\n""    .list();]]>"#: index.docbook:90msgid """note that the second <literal>createCriteria()</literal> returns a new ""instance of <literal>Criteria</literal>, which refers to the elements of the ""<literal>kittens</literal> collection."msgstr """nota que el segundo <literal>createCriteria()</literal> devuelve una nueva ""instancia de <literal>Criteria</literal>, que hace referencia a los ""elementos de la colecci&#x00f3;n <literal>kittens</literal>."#: index.docbook:96msgid "The following, alternate form is useful in certain circumstances."msgstr "La siguiente forma alternativa es útil en ciertas circunstancias."#: index.docbook:100msgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .createAlias(\"kittens\", \"kt\")\n""    .createAlias(\"mate\", \"mt\")\n""    .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n""    .list();]]>"msgstr """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .createAlias(\"kittens\", \"kt\")\n""    .createAlias(\"mate\", \"mt\")\n""    .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"

⌨️ 快捷键说明

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