Internal Website Search

1-10 of 200 resultsRefresh

ORDER BY clause (JPQL / Criteria API)

The ORDER BY clause specifies a required order for the query results. Any JPQL query that does not include an ORDER BY clause produces results in an undefined and non-deterministic order. ORDER BY Expressions The following query

Problem with distinct select, order by and equivalent alias/attribute path

into an exception when ordering the results of some projection when the order by expression ... ;           + "order by s_location.id asc";   ... "             + "order by s.location.id asc

java.lang.NullPointerException when using ORDER BY

!= '192.168.10.200:9085' AND r.callDirection == 0)) ORDER BY r.startDateTime DESC If we remove the ORDER BY part, the query completes OK and returns the records from the DB, but obviously ... to the other as the query works if you remove the order by part. That is this query works:

Strange behaviour with ORDER BY and IN

by its speed and overall performance I noticed a strange behaviour where an ORDER BY - directive ... > Ordering seems to be ignored if we order by a simple member (e.g. a String) being the Entity-ID ... ;    System.out.println("Locations without selection criterion in descending order (by

ORDER BY problem, when String starts with language specific character

Dear all, I have a problem with ORDER BY clause. I have a simple query: select u from User u order by u.name When the name starts ... ="code">ORDER BY clause. However, if you have to sort a large result list

Cannot sort descending, when ordering by caluculated float in a method

Hi, I have found an issue in ordering by a method. I have two entities : Invoice ... this query: (I know, it's not very efficient...) select i from Invoice i order by i.getPrice ... ;       "SELECT i FROM Invoice i ORDER BY i.getPrice() DESC");  

GROUP BY and HAVING clauses

>The position of a GROUP BY clause in the query execution order is after the FROM and WHERE clauses, but before the SELECT clause. When a GROUP BY clause exists in a JPQL query, database objects (or tuples ... The GROUP BY clause enables grouping of query results. A JPQL query with a GROUP BY

setOrdering(ordering)

declarations separated by commas. Each ordering declaration is the name of the field on which to order the results followed by one of the following words: "ascending" or "void setOrdering(  String ordering)

[ODB1] Chapter 7 - JDOQL Queries

rather than by order): Query query = pm.newQuery(Person.class ... > 7.6  Ordering the Results A result collection can be ordered by ... >, an ordered collection is returned by the query. Iterating over the result collection using Iterator

[ODB1] Chapter 6 - Persistent Objects

well using complex, sophisticated queries. The results can also be sorted by specified order ... >Storing Objects Explicitly When a new object is constructed by the newby the following code: pm