ObjectDB Database Search
51-100 of 200 resultsjava.lang.NullPointerException when using ORDER BY == 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 not in order . Here is the stack trace of the exception ... am not sure if this problem is related to the other as the query works if you remove the 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 with "normal/english" character, records are ordered correctly ... anaq x ObjectDB uses the ordinal Java String lexicographical order , which is based on the order | |
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 and InvoiceItem ... 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 | |
How the sort order (in queries) works for non english letters? (we are Czech company). How the sort order works for international (for us 'czech') letters? Does the ordering respects the national requirements? Thank you for clarification ... dmarko David Marko ObjectDB uses the ordinal Java String lexicographical order , which is based on the order | |
NULL prefered in ORDER BY? Hi! Is there a way to NOT prefer NULL in Order BY? I.e. assume this: @Entity class Hint {   ... do something like SELECT FROM Test ORDER BY hint.name It orders ASC like this (assuming I've got ... supported. null values are smaller than any other value so they appear first in ordering | |
order by string with numbers Hi Anyone could help me I need to order a string for example user1, user2, ..., user1000 I ... The sql that works is ORDER BY CAST(SUBSTR(username FROM 4) AS UNSIGNED) ASC Using JPQL SELECT u FROM Users u ORDER BY SUBSTRING(u.username,4)*1 ASC If you have other alternative for JPA | |
Order in WHERE Clause affects behaviour on DATE/DATETIME columns("query", "%myQuery%"); I don't get any error! The order of the WHERE clauses obviously makes | |
Collation and String Order will affect the way strings are sorted in queries (with ORDER BY). Currently strings are always ordered by Unicode order , and a workaround that enables controlling the order is to use normalizing, as ... feature. Many CRMs, DMS and other systems requires correct collation when using order by clause. +1 for this ... dmarko David Marko | |
criteria api / embedded objects / where order to the order of the where clouse and the 2.7.4 wasn't. Unfortunatly I was not able to strip ... to the order of the where clause, meaning that the result set differs. As far as I understand there might be some performence issues related to the order but no different result set | |
Alias not used in ORDER BY would have expected the alias to be used in the ORDER BY clause, something like SELECT $1, UPPER($1.someStringProperty) AS TEST FROM T ORDER BY TEST However what I actually get as query string is SELECT $1, UPPER($1.someStringProperty) AS TEST FROM T ORDER BY UPPER($1.someStringProperty) This doesn't | |
InterfaceRef jakarta.persistence.criteria.CriteriaQuery: AbstractQuery Since: JPA 2.0 List getOrderList () Return the ordering expressions in order of precedence. Returns empty list if no ordering expressions have been specified. Modifications to the list do not affect the query. Return: the list of ordering expressions Since: JPA 2.0 Class getResultType | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder, predicates, orderings . Note that Predicate is used instead of Expression in this API in order ... Since: JPA 2.0 Order asc ( Expression expression) Create an ordering by the ascending value of the expression. Parameters: expression - expression used to define the ordering Return: ascending ordering | |
AnnotationRef jakarta.persistence.OrderBy the ordering of the elements of a collection-valued association or element collection at the point when the association or collection is retrieved. The syntax of the value ordering element is an orderby_list ... _name] [ASC | DESC] If ASC or DESC is not specified, ASC (ascending order ) is assumed. If the ordering | |
AnnotationRef jakarta.persistence.OrderColumn a column that is used to maintain the persistent order of a list. The persistence provider is responsible for maintaining the order upon retrieval and in the database. The persistence provider is responsible for updating the ordering upon flushing to the database to reflect any insertion, deletion, or | |
CriteriaQuery.orderBy(o) - JPA Method o ) Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified, the previous ordering , if any, is simply removed, and results will be returned in no particular order . The order | |
CriteriaQuery.orderBy(o) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaQuery CriteriaQuery orderBy ( Order ... o ) Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified, the previous | |
AnnotationRef jakarta.persistence.ColumnResult order _id, " + "o.quantity AS order _quantity, " + "o.item AS order _item, " + "i.name AS item_name, " + "FROM Order o, Item i " + "WHERE ( order _quantity 25) AND ( order _item = i.id)", "OrderResults"); @SqlResultSetMapping( name = "OrderResults", entities = { @EntityResult( entityClass = com.acme. Order | |
AnnotationRef jakarta.persistence.FieldResult fields of an entity class. Example: {@snippet : Query q = em.createNativeQuery( "SELECT o.id AS order _id, " + "o.quantity AS order _quantity, " + "o.item AS order _item, " + "FROM Order o, Item i " + "WHERE ( order _quantity 25) AND ( order _item = i.id)", "OrderResults"); @SqlResultSetMapping( name | |
AnnotationRef jakarta.persistence.SqlResultSetMapping : Query q = em.createNativeQuery( "SELECT o.id AS order _id, " + "o.quantity AS order _quantity, " + "o.item AS order _item, " + "i.name AS item_name, " + "FROM Order o, Item i " + "WHERE ( order _quantity 25) AND ( order _item = i.id)", "OrderResults"); @SqlResultSetMapping( name = "OrderResults", entities | |
AnnotationRef jakarta.persistence.NamedNativeQuery " + "FROM Order o, Item i " + "WHERE (o.item = i.id) AND (i.name = 'widget')", resultClass = com.acme. Order .class )} In more complicated cases, a plain is needed ... ; + "FROM Order o, Item i " + "WHERE (o.quantity 25) AND (o.item = i.id)" | |
AnnotationRef jakarta.persistence.NamedStoredProcedureQuery are specified by the parameters element. Parameters must be specified in the order in which they occur in ... mappings or all via a set of result set mappings. The order of the specification of these mappings must be the same as the order in which the result sets are returned by the stored procedure invocation | |
InterfaceRef jakarta.persistence.StoredProcedureQuery in the order the REF_CURSOR parameters were registered with the query. In the simplest case ... set, if any, is retrieved in the order the REF_CURSOR parameter was registered with the query. Return ... . A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter was registered | |
CriteriaBuilder.asc(expression) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Order asc ( Expression expression ) Create an ordering by the ascending value of the expression. Parameters: expression - expression used to define the ordering Return: ascending ordering corresponding to the expression Since: JPA 2.0 | |
CriteriaBuilder.desc(expression) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Order desc ( Expression expression ) Create an ordering by the descending value of the expression. Parameters: expression - expression used to define the ordering Return: descending ordering corresponding to the expression Since: JPA 2.0 | |
CriteriaQuery.getOrderList() - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaQuery List getOrderList () Return the ordering expressions in order of precedence. Returns empty list if no ordering expressions have been specified. Modifications to the list do not affect the query. Return: the list of ordering expressions Since: JPA 2.0 | |
CriteriaBuilder.asc(expression,nullPrecedence) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Order asc ( Expression expression, Nulls nullPrecedence ) Create an ordering by the ascending value of the expression. Parameters: expression - expression used to define the ordering | |
CriteriaQuery.select(selection) - JPA Method type is specified. For example: CriteriaQuery q = cb.createQuery(String.class); Root order = q.from( Order .class); q.select( order .get("shippingAddress"). get("state")); CriteriaQuery q2 = cb.createQuery(Product.class); q2.select(q2.from( Order .class) .join("items") . join | |
CriteriaBuilder.desc(expression,nullPrecedence) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Order desc ( Expression expression, Nulls nullPrecedence ) Create an ordering by the descending value of the expression. Parameters: expression - expression used to define the ordering | |
InterfaceRef jakarta.persistence.EntityManager the order of their occurrence in the select list and default JDBC type mappings are applied. Parameters ... can be executed. The resultClass arguments must be specified in the order in which the result sets is returned by ... arguments must be specified in the order in which the result sets is returned by the stored procedure | |
AnnotationAttrRef jakarta.persistence.OrderBy.value_field_name] [ASC | DESC] If ASC or DESC is not specified, ASC (ascending order ) is assumed. If the ordering element is not specified, ordering by the primary key of the associated entity is assumed. Since: JPA 1.0 | |
AnnotationRef jakarta.persistence.ConstructorResult using the columns element of the ConstructorResult annotation in the same order as that of the argument ... , " + "AVG(o.price) AS avgOrder " + "FROM Customer c, Orders o " + "WHERE o.cid = c.id " + "GROUP BY c.id ... of the intended constructor, in order . Since: JPA 2.1 Class targetClass default null (Required) The class whose constructor is to be invoked. Since: JPA 2.1 | |
CriteriaQuery.multiselect(selectionList) - JPA Method corresponding to the elements of the list passed to the multiselect method, in the specified order ... of the list passed to the multiselect method, in the specified order . If the type of the criteria ... the specified order . Parameters: selectionList - list of selection items corresponding to the results | |
CriteriaQuery.multiselect(selections) - JPA Method corresponding to the arguments of the multiselect method, in the specified order , will be instantiated ... order . If the type of the criteria query is CriteriaQuery or if the criteria query was created ... order . Parameters: selections - selection items corresponding to the results to be returned by | |
EnumRef jakarta.persistence.criteria.Predicate$BooleanOperator the constants of this enum type, in the order they are declared. This method may be used to iterate ... ()) System.out.println(c); Return: an array containing the constants of this enum type, in the order | |
EnumRef jakarta.persistence.criteria.CriteriaBuilder$Trimspec an array containing the constants of this enum type, in the order they are declared. This method ... type, in the order they are declared CriteriaBuilder.Trimspec valueOf (String name) Returns the enum | |
EnumRef jakarta.persistence.metamodel.Bindable | |
EnumRef jakarta.persistence.metamodel.Attribute | |
AnnotationAttrRef jakarta.persistence.OrderColumn.name JPA Annotation Attribute in jakarta.persistence.OrderColumn String name default "" (Optional) The name of the ordering column. Defaults to the concatenation of the name of the referencing property or field; " _ "; " ORDER ". Since: JPA 2.0 | |
AnnotationRef jakarta.persistence.Index nor DESC is not specified, ASC , that is, ascending order , is assumed. Note that it is not necessary ... the index, in order , following the BNF rule column_list given above. Since: JPA 2.1 String name default | |
EnumRef jakarta.persistence.metamodel.Type | |
EnumRef jakarta.persistence.metamodel.PluralAttribute | |
AnnotationRef jakarta.persistence.EntityResult.createNativeQuery( "SELECT o.id, o.quantity, o.item, " + "i.id, i.name, i.description " + "FROM Order o, Item i | |
Path | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder$SimpleCase JPA Interface SimpleCase Super Interfaces: Expression , Selection , TupleElement Interface used to build simple case expressions. Case conditions are evaluated in the order in which they are specified. Since: JPA 2.0 Public Methods Expression getExpression () Return the expression to be tested | |
AnnotationRef jakarta.persistence.AssociationOverride the name of the attribute within the embeddable class that is being overridden in order to specify | |
StoredProcedureQuery.getSingleResult() - JPA Method JPA Method in jakarta.persistence.StoredProcedureQuery Object getSingleResult () Retrieve a single result from the next result set. The provider will call execute on the query if needed. A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter was registered | |
StoredProcedureQuery.getResultList() - JPA Method JPA Method in jakarta.persistence.StoredProcedureQuery List getResultList () Retrieve the list of results from the next result set. The provider will call execute on the query if needed. A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter was registered | |
InterfaceRef jakarta.persistence.criteria.From to specify the type resulting from the get operation in order to avoid the use of Path variables | |
EntityManager.createStoredProcedureQuery(procedureName,resultClasses) - JPA Method in the order in which the result sets is returned by the stored procedure invocation. Parameters | |
AnnotationRef jakarta.persistence.AttributeOverride the name of the attribute that is being overridden in order to specify it as part of the map key or map |