ObjectDB Database Search

1-50 of 57 results

jakarta.persistence.TypedQuery.getSingleResult()

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery X getSingleResult () Execute a SELECT query that returns a single result. Returns: the result, of type X . Throws: IllegalStateException - if called for a Jakarta Persistence query language UPDATE or DELETE statement

jakarta.persistence.StoredProcedureQuery.getSingleResult()

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery Object getSingleResult () Retrieve a single result from the next result set. The provider will call execute on the query if needed. A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter

_PersistenceException: Type is not found on getSingleResult.

_PersistenceException: Type is not found on getSingleResult.

Query Parameters in JPA

", Country.class); return query. setParameter ("name", name). getSingleResult (); } The WHERE clause ... the call to getSingleResult in the same expression. Named parameters in a query string are identifiable by ... = ?1", Country.class); return query. setParameter (1, name). getSingleResult (); } The format

Setting and Tuning of JPA Queries

The Query and TypedQuery interfaces define various methods for setting and tuning query execution . To take effect, you must invoke these methods before running a query with getResultList or getSingleResult . Result range (setFirstResult, setMaxResults) The setFirstResult and setMaxResults methods

jakarta.persistence.TypedQuery

Persistence (JPA) 2.2 X getSingleResult () Execute a SELECT query that returns a single result. Overrides Query. getSingleResult Returns: the result, of type X . Throws: IllegalStateException - if called

Duplicate Entity class names causes Exception in Query

. getSingleResult (JpaQuery.java:664) at objdbTest.Singleton.findItem(Singleton.java:62) at objdbTest ... ) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:657) ... 64 more Here is the class doing ... .setParameter("cachedKey", Integer.toString(which)); try { return q. getSingleResult (); } catch

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

.RecordingMetaDataDAO. getSingleResult (RecordingMetaDataDAO.java:958)        ... .RecordingService. getSingleResult (RecordingService.java:384)        ... ; at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:723)      

Mismatch client-server protocol prefix

;      result = (TrackerUser) q. getSingleResult ();       ... ; result = q. getSingleResult ();         } catch (Throwable ex ... ; This exception gets thrown at the getSingleResult line: java.lang.ClassCastException: at.co.pjm.tracker

Catching exceptions from online backup

the following solution: Thread backupThread = backupQuery . getSingleResult ( ) ; backupThread ... accessible via some API or the  TypedQuery. getSingleResult () would accept a parameter of type ... ; Thread backupThread = backupQuery . getSingleResult ( ) ; // TODO: Complete initializing the thread

Online backup problem

; Thread backupThread = backupQuery. getSingleResult ();    backupThread.join();   } catch ... .createQuery("objectdb backup");   query. getSingleResult ();     em.close();   emf.close ... ;query. getSingleResult (); or the new build (2.2.7_07) that should fix it. Thank you for this report

zip file or JAR manifest missing

(error 301) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:620) at src.run.txt2db.lookup ... .objectdb.o.QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:613) ... 2 ... ); q2.setParameter(2, sName); ItemList item = null; try { item = (ItemList)q2. getSingleResult

Tutorial issue

) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:754) at tutorial.Main.main(Main.java:29 ... .java:153) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:747) ... 1 more  

License Activation Change and Checking Activation

", boolean.class). getSingleResult (); support Support This query always returns false in my case ... .JpaQuery. getSingleResult (JpaQuery.java:747) mosi0815 Ralph Moser Sorry, hopefully build 2.5.5_03 should work fine. support Support

Cast exception?

.createNamedQuery("Player.getPlayer", Player.class); Player player = query.setParameter("id", uid). getSingleResult ... . getSingleResult (); Without any error. So the only error occurring is the casting, which doesn't

New to Product & Having An Issue

", Department.class); q.setParameter("id", this.departmentId); Department d = q. getSingleResult ... . getSingleResult (); assertNotNull(d); assertNotNull(d.getDomainId()); assertEquals(this.departmentId, d.getDomainId

Potential ObjectDB bug

.JpaQuery. getSingleResult (JpaQuery.java:757) [objectdb.jar:] at com.example.dao.TvrtkaDAO ... .objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:757) [objectdb.jar:] at com.example.dao.TvrtkaDAO

Getting the database file size

.createEntityManager()) { long fileSize = em.createQuery( "objectdb file-size", Long.class). getSingleResult ... -count", Long.class). getSingleResult (); System.out.printf("Object Count: %d%n", objectCount); } } support Support

Date field Index is corrupted due to time change

) q. getSingleResult ();         em.getTransaction().commit ... . getSingleResult ();         em.getTransaction().commit();    

Bulk Delete and Update - best practice?

.createQuery("SELECT COUNT(d) from CacheData d", Long.class); long rows = q. getSingleResult ... .createEntityManager(); q = em.createQuery("SELECT COUNT(d) from CacheData d", Long.class); rows = q. getSingleResult

TYPE Expression

.OBC.onObjectDBError(OBC.java:1485) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:702 ... (QRR.java:230) at com.objectdb.o.QRR.b(QRR.java:151) at com.objectdb.jpa.JpaQuery. getSingleResult

Visibility of changes in Transaction is not visible to a JPA QL Query

; return q. getSingleResult ();   } catch (javax.persistence.NoResultException ex) {    ... ", Integer.toString(which));   return q. getSingleResult ();  

Problem upgrading

] at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:757) ~[objectdb-2.6.6.jar:na] ... 120 ... (QRR.java:222) ~[objectdb-2.6.6.jar:na] at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java

Remove a modified entity cause an optimistic lock exception

.createQuery("select m from MyEntity m"). getSingleResult ();         e ... from MyEntity m"). getSingleResult ();         em.remove(e);  

ArrayIndexOutOfBoundsException

;    at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:696) After the first time ... ;  at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:696)   I'm afraid I can't

Disable Evaluation possibility

activation", boolean.class). getSingleResult (); Then you can avoid using ObjectDB and generate

CriteriaQuery .where() for multiple conditions

)); criteriaQuery.where(criteria); person = em.createQuery(criteriaQuery). getSingleResult (); em.getTransaction

Query can't see recently persisted object

("here"); } MyObject myObject; try { myObject = query. getSingleResult (); } catch (NoResultException ex

enumeration table? how to on pure jpa?

). getSingleResult ();   Alternatively you can define a special entity class, e.g. GlobalProperty

newbie - lots of exeptions

.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:716) at com.prohire.prohire_sync.ProhireQueries

Merge with Parent/Child entities not possible

);   ParentEntity parentEntity = parentEntityQuery. getSingleResult ();   entityManager.refresh

Unexpected query token 'delete' (SELECT is expected) (error 752)

simple codes(see attachment), failed.   gzdillon Lai Yang DELETE queries should not be run with getSingleResult ( which is for SELECT queries). Use executeUpdate instead. See this manual page . support Support

Online backup in embedded mode fails

) at com.objectdb.o.QRY.s(QRY.java:292) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:648

Broken @ManyToOne reference

). getSingleResult (); because  Main.CHILD_ID is only part of the primary key now. support Support Hi support

EntityManager JPA or JDO impl and different behavior

). getSingleResult ();         em.close();     

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

) q. getSingleResult (); if (l Integer.MAX_VALUE) return -1; int i = (int) l; return i; } catch (javax

combined index not used

statistics", Thread.class). getSingleResult (); thread.join(); em.close(); emf.close ... = entityManager .createQuery("objectdb statistics", Thread. class ). getSingleResult ();    ... .createQuery("objectdb statistics", Thread.class). getSingleResult (); thread.join(); em.close(); emf.close

Unexpected exception when execute query without enhanced entities

.QRR.i(QRR.java:154) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:760) I would expect ... .o.OBC.onObjectDBError(OBC.java:1591) ~[na:na] at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery ... ] at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:760) ~[na:na] ... 28 common frames omitted

Server crash - Mismatch client-server protocol prefix

Mismatch client-server protocol prefix (error 523) at com.objectdb.jpa.JpaQuery. getSingleResult ... .objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:716) ... 27 more   I realize this isn't a lot

UPDATE statemen crash when i put the WHERE clause.

)).setParameter( "curs" , "Programare avansata" ). getSingleResult () ; lab_points = lab_points + Integer ... )).setParameter( "curs" , "Programare avansata" ). getSingleResult ()) ; } if (updateEm.getTransaction

Issues with JDO Casting & Full Qualified Names

= '123'";   System.out.println("4: " + em.createQuery(query). getSingleResult ());   em.close ... ; System.out.println("4: " + em.createQuery(query). getSingleResult ());      

ObjectDB can't be activated

activation", boolean.class). getSingleResult ()); Result is " false ". Also when trying to create ... System.out.println(emf.createEntityManager().createQuery("objectdb activation", boolean.class). getSingleResult

Unexpected error when loading all entity instance

.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:750) at com.querydsl.jpa.impl.AbstractJPAQuery. getSingleResult (AbstractJPAQuery.java:183) at com.querydsl.jpa.impl.AbstractJPAQuery.fetchOne

Can't open replicated database

.QRR.g(QRR.java:225) at com.objectdb.o.QRR.b(QRR.java:144) at com.objectdb.jpa.JpaQuery. getSingleResult

NullPointer when accessing persistent field

; a = em.createQuery("SELECT a FROM A a", A.class). getSingleResult ();       

unexpected exception

:210) at com.objectdb.o.QRR.b(QRR.java:138) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java

queries under 2.7.6_4 significantly slower than under 2.7.6

(); Thread thread = em.createQuery( "objectdb statistics", Thread.class). getSingleResult (); thread.join

Threaded Test - Failed to commit transaction: Unexpected internal exception

) at com.objectdb.o.QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:645

Exception on comparing array fields against parameters in queries

;   at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:755)     at id

Unexpected Exception (Error 990) with ArrayIndexOutOfBoundsException

EventLogPersistEntry p"); long rows = 0; try { rows = (long) count. getSingleResult (); } catch (final