ObjectDB Database Search

1-12 of 12 results

jakarta.persistence.TypedQuery.setMaxResults(int)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setMaxResults (    int maxResult ) Set the maximum number of results to retrieve. Parameters: maxResult - maximum number of results to retrieve Returns: the same query instance. Throws: IllegalArgumentException

Setting and Tuning of JPA Queries

getSingleResult . Result range (setFirstResult, setMaxResults ) The setFirstResult and setMaxResults methods ... the beginning of the complete result list. The setMaxResults method specifies the size of the result ... for a specific page: List results = query. setFirstResult (pageIx * pageSize) . setMaxResults (pageSize

jakarta.persistence.TypedQuery

. Returns Integer.java.lang.Integer/MAX_VALUE if Query. setMaxResults was not applied to the query object ... a CriteriaQuery query. Since: Jakarta Persistence (JPA) 1.0 TypedQuery setMaxResults ( int maxResult ) Set the maximum number of results to retrieve. Overrides Query. setMaxResults Parameters: maxResult

Selecting random rows

Hello is there way to get random rows? Functions like rand(), random(), newid() doesn't work ;/ for example: em.createQuery("SELECT s FROM StawkaVat s ORDER BY rand()"). setMaxResults (5).getResultList(); gives exception: Exception in thread "AWT-EventQueue-0" [ObjectDB 2.5.6_02] SELECT s FROM StawkaVat s == rand

New to Product & Having An Issue

. TypedQuery q = em.createNamedQuery("Department.findAll", Department.class); q. setMaxResults (1000); List

About LIMIT and OFFSET as query tokens

range using setFirstResult and setMaxResults . support Support Thanks you!!! mgarciat Miguel

slow performance for a complex query

over result set with setFirstResult and setMaxResults . I could do this with subqueries, however as I

Sorting problem

() and setMaxResult ();     lwalkowski Lukasz Walkowski Your query works well with a small change: String q

100% CPU when using multiple BETWEEN

with Query. setMaxResults (...).   Any suggestions? Thank you Emil   prolancer Emil Andonov In

NPE at com.objectdb.jpa.JpaQuery.getResultList

(fromMomentPayload.get("dateTime"))); Query q = em.createQuery(query); if (!all) { q. setMaxResults (maxResults); q ... ;     q. setMaxResults (maxResults);        

[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null

= em.createQuery(cq); if (!all) { q. setMaxResults (maxResults); q.setFirstResult(firstResult

Null pointer exception being thrown from within ObjectDB.

. setMaxResults (maxRecords).getResultList(); ...   Screenshots attached for database explorer.