ObjectDB ObjectDB

Internal Website Search

1-10 of 23 resultsRefresh
166

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
118

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
105

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
94

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
94

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
34

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
34

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
24

JPA Query Structure (JPQL / Criteria)

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

JPA Criteria API Queries

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

javax.persistence.OrderColumn

visible as part of the state of the entity or embeddable class. The OrderBy annotation should be used for ordering that is visible as persistent state and maintained by the application. The OrderBy ... ; ... } Since: JPA 2.0 See Also: OrderBy String columnDefinition (Optional) The SQL fragment that is used

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