ObjectDB ObjectDB

Internal Website Search

1-10 of 24 resultsRefresh
161

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> 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
114

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
101

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
91

orderBy(o)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery<T> 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
91

orderBy(o)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery<T> orderBy( List<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
63

ORDER BY clause (JPQL / Criteria API)

.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
33

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<Employee> employees
30

JPA Annotations for Relationships

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

JPA Criteria API Queries

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

JPA Query Structure (JPQL / Criteria)

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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support