ObjectDB ObjectDB

Internal Website Search

11-20 of 23 resultsRefresh

How to convert a boolean to an int in the query?

);         q.select(intCaptial);         q.orderBy(cb.asc(intCaptial));         query = em.createQuery(q ... ); q.select(intApproveEmail); q.orderBy(cb.asc(intApproveEmail)); query = em ... .select(intApproveEmail); q.orderBy(cb.desc(cb.sum(intApproveEmail, intApprovePhoneNumber

Activation error on Schema change

Hi, Is @OrderBy annotation supported ? When I add this annotation to my entity I get an error, saying that I did not activate my ObjectDB (which I did) : Caused by: com.objectdb.o ... . Greetings, Karol Borkowski kborkowski Karol Borkowski This is probably not related particularly to @OrderBy

Problem persisting a TreeSet field

. You can define the field as List and use the @OrderBy annotation to refine the automatic query

Problem with distinct select, order by and equivalent alias/attribute path

demonstrates it: The following two queries are not legal because the orderby_item is not reflected in

Error during cascaded merge

= "unit", cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.EAGER)     @OrderBy


item has the same assigned alias Since: JPA 2.0 CriteriaQuery<T> orderBy(List<Order> o) Specify ... or more ordering expressions Returns: the modified query Since: JPA 2.0 CriteriaQuery<T> orderBy

Strange Error with Criteria API and Sorting

Test_OrderBy { public static void main(String[] args) {   EntityManagerFactory emf = Persistence ... <?, ?> otherJoin = root.join("other");   query.orderBy(cb.asc(cb.upper((Expression<String ... .jpa.JpaQuery.getResultList(JpaQuery.java:695) at Test_OrderBy.main(Test_OrderBy.java:45) Caused

NPE at com.objectdb.jpa.JpaQuery.getResultList

(MomentPayload.class); query.select(fromMomentPayload); query.orderBy(cb.desc ... .orderBy(cb.desc(fromMomentPayload.get("dateTime")));             Query q = em.createQuery(query

Alias not used in ORDER BY

Hi, I am doing something simple like final Root<T> from = criteria.from(T.class) final Path<?> path = from.get("someStringProperty") final Expression<String> upperPath = builder.upper((Expression<String>) path); upperPath.alias("TEST"); criteria.multiselect(from, path); criteria.orderBy

Null pointer exception being thrown from within ObjectDB.

))               )             ).             orderBy(cb.desc(r.get("objectDbId")));     TypedQuery<ReportDownloadObject> query

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