Internal Website Search
1-40 of 40 resultsORDER BY clause (JPQL / Criteria API) clause . Order Direction (ASC, DESC ) The default ordering direction is ascending ... the DESC keyword must be added explicitly to the order expression: SELECT c.name FROM Country c ORDER BY c.name DESC Grouping (GROUP BY) Order The ORDER BY clause is always the last in the query | |
CriteriaBuilder.desc(x) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Order desc ( Expression x ) Create an ordering by the descending value of the expression. Parameters: x - expression used to define the ordering Return: descending ordering corresponding to the expression Since: JPA 2.0 | |
Criteria Query Selection and Results descending ( DESC ). The CriteriaBuilder 's asc and desc methods take an expression and return | |
FROM clause (JPQL / Criteria API)_TIME, CURRENT_TIMESTAMP,DELETE, DESC , DISTINCT, ELSE, EMPTY, END, ENTRY, ESCAPE, EXISTS, FALSE, FETCH | |
JPA Query Structure (JPQL / Criteria) , ...). Criteria ORDER BY ( orderBy , Order , asc , desc ). | |
ObjectDB Object Database Features and aggregates ). ORDER BY (including ASC, DESC ). Aggregates (COUNT, SUM, AVG, MAX, MIN). Query | |
JPA Criteria API Queries , avg , min , max , ...). ORDER BY clause ( orderBy , Order , asc , desc ). The links above are direct | |
Query problem after transaction commit for all object Goods successfully] 04 SELECT u FROM Goods u where u._code like :code AND u._ desc like : desc 05 code= %, desc = % 06 UI: end query 07 UI: start printing result 08 code= A, desc = Good A, byUser= test 09 code= B, desc = Good B, byUser= test 10 code= C, desc = Good C, byUser= test 11 UI: end | |
How to convert a boolean to an int in the query?)approveEmail DESC and SELECT approveEmail FROM Person ORDER BY approveEmail DESC return different results ... FROM Person ORDER BY (int)approveEmail DESC works fine. Query SELECT approveEmail FROM Person ORDER BY (int)approveEmail + (int)approvePhoneNumber DESC works fine. Criteria query CriteriaBuilder cb | |
Slow searching with two indexes by id desc With the query limited to (say) 10 results. Is there any obvious way to speed ... == :objectReference order by id desc when an index is defined on the reference field should use that index ... where receiver == :r order by id desc Query Plan Description ====================== [Step 1] Scan index com | |
100% CPU when using multiple BETWEEN BY r.startDate DESC , r.startTime DESC , r.channelNumber DESC The following query works fine ... ' AND '2099')) OR ((r.fromExtension BETWEEN '2010' AND '2099'))) ORDER BY r.startDate DESC , r.startTime DESC , r.channelNumber DESC In both cases we limit the result count to the first 50 records | |
javax.persistence.OrderBy] [ASC | DESC ] If ASC or DESC is not specified, ASC (ascending order) is assumed. If the ordering ... _or_field_name] [ASC | DESC ] If ASC or DESC is not specified, ASC (ascending order) is assumed | |
Accessiblity of attributes in entities in several OSGi-Bundles String desc ; public void setDescription(String desc ) { this. desc = desc ; } } class MessageServiceImpl | |
Strange behaviour with ORDER BY and IN; em.createQuery("select l from Location l order by l.id desc ", Location.class)   ... where l.id IN :ids order by l.id desc ", Location.class)   ... ("select l from Location l where l.town IN :towns order by l.town desc ", Location.class)   | |
com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV-8553-cc5688ba142d') ORDER BY MAX($1.createDate) DESC but this query returns an exception ... ) DESC entity object is: @Entity public class ChatHistoryItem extends AbstractObject { private ... .createDate) DESC and even a simpler query: SELECT DISTINCT e FROM ChatHistoryItem e ORDER BY MAX(e | |
Cannot sort descending, when ordering by caluculated float in a method this query: (I know, it's not very efficient...) select i from Invoice i order by i.getPrice() desc /asc it gives the same order for desc and asc (every time asc) When the float is not calculated (only returned ... ORDER BY i.getPrice() DESC "); List resultList = query | |
First query takes 4+ minutes to complete with the following query: SELECT r from RecordingMetaData AS r ORDER BY r.startDate DESC , r.startTime DESC , r.channelNumber DESC We limit the result to 50 records. Basically we wish to get the last 50 records | |
Wrong data stored in time only fields BY r.startDate DESC , r.startTime DESC "); resultList = q ... from DateTime AS r ORDER BY r.startDateTime DESC ");   | |
Navigation through Path to evaluate collection; "ORDER BY item.sku DESC " ,ProductData.class)   ... id WHERE item.sku = :key OR id = :id ORDER BY item.sku DESC You may also try this (not valid JPQL ... .apiId.identifier = :id ORDER BY item.sku DESC support Support | |
javax.persistence.OrderBy.value JPA Annotation Attribute in javax.persistence.OrderBy String value default "" An orderby_list . Specified as follows: orderby_list::= orderby_item [,orderby_item] orderby_item::= [property_or_field_name] [ASC | DESC ] If ASC or DESC is not specified, ASC (ascending order) is assumed | |
javax.persistence.Column values apply. Example 1: @Column(name=" DESC ", nullable=false, length=512) public String getDescription() { return description; } Example 2: @Column(name=" DESC ", columnDefinition="CLOB NOT NULL", table="EMP | |
javax.persistence.Index follows: column::= index_column [,index_column] index_column::= column_name [ASC | DESC ] If ASC or DESC is not specified, ASC (ascending order) is assumed. See Also: Table SecondaryTable | |
Sorting problem; q = "select br from Branch br ORDER BY ?1 DESC ";   ... = "select br from Branch br ORDER BY br.id DESC "; icQuery = em.createQuery(q, Branch.class | |
String Contains Query Result - Possible? one that is contained within the System Description. public static Program programByDescription(String desc ) { for(Program p : allPrograms()) if( desc .contains(p.getDescription())) return p; return null | |
javax.persistence.criteria.CriteriaBuilder: expression for current timestamp Since: JPA 2.0 Order desc ( Expression x) Create an ordering by | |
Speeding up reporting queries with size() on list Inspiration insp order by date(insp.lastModificationDate) desc insp.description is normal String | |
how to create only table structure. then " desc emp;" it will show the structure of table. Bimal Bimal kumar dalei ObjectDB is not | |
java.lang.NullPointerException when using ORDER BY We are using ObjectDB 2.5.1_04. The following query causes an internal null pointer exception: SELECT r FROM RecordingMetaData AS r WHERE ((r.mapToCli != '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 | |
Error during cascaded merge("configDate DESC ") public List getChannelConfigurationSets() {   | |
Retrieve latest entry in a time-series order: SELECT FROM MyEntity e WHERE ... ORDER BY e.date DESC Then you can run | |
Query perfromance problem." + sortColumn + " DESC "; } icQuery = em.createQuery(q, Product.class);   | |
In version 2.5.2_05 does not work greatest by Date In earlier versions this query worked fine. In version 2.5.2_05 does not work .orderBy(cb. desc (cb.greatest(root.get("createDate").as(Date.class)))).distinct(true) Thank you for your help. galandor Orlov Sergey Please try build 2.5.2_06 that should fix this regression (of casting to Date ). support Support | |
NPE at com.objectdb.jpa.JpaQuery.getResultList = query.from(MomentPayload.class); query.select(fromMomentPayload); query.orderBy(cb. desc ... ; query.orderBy(cb. desc (fromMomentPayload.get("dateTime")));   | |
Sort of very large objects - out of memory indexes: SELECT m FROM Message m ORDER by priority DESC , createTime could even be faster if both sort ... with different ASC / DESC components will be supported in future versions. Meanwhile, consider reversing | |
Strange Error with Criteria API and Sorting We're creating a simple selection (distinct) including an order clause. When watching the created criteria in debugger we get the correct expression: SELECT DISTINCT $1 FROM MyEntity $1 WHERE ((TYPE($1)=class test.MyEntity)) ORDER BY UPPER($1.name) DESC You can see that in the order by | |
combined index not used.parentNode.classIdentifier = "(ME)" order by o.parentNode.modified desc database can be downloaded | |
Unexpected error when loading all entity instance _changeSet.index desc With the parameter ?1 = "b07f5cd0-de22-11e6-8f0c-da13fcef2539". This query | |
Unexpected Exception (Error 990) with ArrayIndexOutOfBoundsException.createQuery( "SELECT p FROM EventLogPersistEntry p ORDER BY p.id DESC ", EventLogPersistEntry.class | |
Null pointer exception being thrown from within ObjectDB.; orderBy(cb. desc (r.get("objectDbId"))); TypedQuery query = entityManager | |
queries more than 10 times slower using 2.8.1 versus 2.7.6.parentNode.classIdentifier = "(ME)" order by o.parentNode.modified desc hgzwicker Hans |