Home » Search

About orderBy

1-10 of 24Refresh
JPA Doc
113

javax.persistence.OrderBy

javax.persistence Annotation OrderBy Target: Fields (including property get methods) Specifies ... when the association or collection is retrieved. The syntax of the value ordering element is an orderby_list, as follows: orderby_list::= orderby_item [,orderby_item]* orderby_item::= [property_or
JPA Doc
100

OrderBy.value

Annotation Element javax.persistence.OrderBy String value 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. If the ordering element
JPA Doc
89

orderBy(o)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery orderBy(   List 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
JPA Doc
89

orderBy(o)

Method javax.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 ordering, if any, is simply
Manual
85

ORDER BY clause (JPQL / Criteria API)

(Country.class); q.select(c); q.orderBy(cb.asc(c.get("currency")), cb.desc(c.get("population"))); Unlike other methods for setting criteria query clauses - the orderBy method takes a variable number
JPA Doc
50

JPA Annotations for Relationships

Reference (JavaDoc) of JPA 2 relationship annotations, including @ManyToMany, @ManyToOne, @OneToMany, @OneToOne, @OrderBy and @MapKey.
Manual
35

JPA Entity Fields

, the order of the retrieved owner entities can be set by the OrderBy annotation: @Entity public class Department { @OneToMany(mappedBy="department") @OrderBy("name") List employees
Forum
31

Problem with @OrderBy

When I use @OrderBy and supply multiple order fields I get and error when ObjectDB Explorer expands ... ")     @OrderBy("seqRel, noteSeq")     Set notes;     ...     ... } The error is printed ... and only use one I do not get any errors. @OrderBy("seqRel") Is this a bug or am I using collections
Manual
24

JPA Criteria API Queries

, having, count, sum, avg, min, max, ...). ORDER BY clause (orderBy, Order, asc, desc). The links
Manual
24

JPA Query Structure (JPQL / Criteria)

GROUP BY / HAVING (groupBy, having, count, sum, avg, min, max, ...). Criteria ORDER BY (orderBy, Order, asc, desc).