About orderBy

manual

ORDER BY clause (JPQL / Criteria API)

Explains how to use the ORDER BY clause in a JPA/JPQL query.... Reference Page... ( c ) ; q. orderBy orderBy(o) CriteriaQuery's method Specify the ordering expressions ...

 
api-jpa

javax.persistence.OrderBy

Specifies the ordering of the elements of a collection valued association or element collection at the point when the association or collection is retrieved.(Annotation of JPA)

 
api-jpa

JPA Annotations for Relationships

Reference (JavaDoc) of JPA 2 relationship annotations, including @ManyToMany, @ManyToOne, @OneToMany, @OneToOne, @OrderBy and @MapKey.... calculated by a query) : javax.persistence.OrderBy javax.persistence.MapKey Details about all these ...

 
api-jpa

orderBy(o)

Specify the ordering expressions that are used to order the query results.(Method of javax.persistence.criteria.CriteriaQuery)

 
forum_thread

Problem with @OrderBy

When I use @OrderBy and supply multiple order fields I get and error when ObjectDB loads that entity. Example code: @Entity @Table(name="Problems", schema = myDB") public class Defects  implements Serializable { ... ...  @OneToMany(mappedBy="problem") @OrderBy("seqRel, noteSeq") Set<Notes> notes; ... ... } ... 05:17 When I use @OrderBy and supply multiple order fields I get and error when ObjectDB Explorer ... ( mappedBy = "defect" ) @ OrderBy ( "seqRel, noteSeq" ) Set<Notes> notes ...

 
api-jpa

orderBy(o)

Specify the ordering expressions that are used to order the query results.(Method of javax.persistence.criteria.CriteriaQuery)

 
forum_thread

Error during cascaded merge

Hello! I have a new problem with ObjectDB 2.5.5_02. This issue appeared after the upgrade from 2.5.5. I get the following exception: ... = FetchType . EAGER ) @ OrderBy ( "configDate DESC" ) public ...

 
api-jpa

javax.persistence.OrderColumn

Specifies a column that is used to maintain the persistent order of a list.(Annotation of JPA)

 
manual

JPA Query Structure (JPQL / Criteria)

Explains the structure of a JPQL query, which consists of 6 clauses: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY.... , ...). Criteria ORDER BY  ( orderBy orderBy(o) CriteriaQuery's method Specify the ordering expressions ...

 
api-jpa

javax.persistence.criteria.CriteriaQuery

The CriteriaQuery interface defines functionality that is specific to top-level queries.(Interface of JPA)