Internal Website Search
1-50 of 88 resultsRunning JPA Queries The Query interface defines two methods for running SELECT queries: Query. getSingleResult ... other case. Similarly, the TypedQuery interface defines the following methods: TypedQuery. getSingleResult ... Country instances would be more efficient. Single Result Query Execution (with getSingleResult | |
StoredProcedureQuery.getSingleResult() - JPA Method JPA Method in javax.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, will be retrieved in the order the REF_CURSOR parameter was registered | |
Query.getSingleResult() - JPA Method JPA Method in javax.persistence.Query Object getSingleResult () Execute a SELECT query that returns a single untyped result. Return: the result Throws: NoResultException - if there is no result NonUniqueResultException - if more than one result IllegalStateException - if called for a Java | |
TypedQuery.getSingleResult() - JPA Method JPA Method in javax.persistence.TypedQuery X getSingleResult () Execute a SELECT query that returns a single result. Return: the result Throws: NoResultException - if there is no result NonUniqueResultException - if more than one result IllegalStateException - if called for a Java Persistence | |
_PersistenceException: Type is not found on getSingleResult._PersistenceException: Type is not found on getSingleResult. | |
Query Parameters in JPA). getSingleResult (); } The WHERE clause reduces the query results to Country objects whose name field value ... ), so invocation of getSingleResult can be chained to the same expression. Named parameters can be easily ... WHERE c.name = ?1", Country.class); return query. setParameter (1, name). getSingleResult | |
Online Backup; em.createQuery("objectdb backup"). getSingleResult (); The backup query string is always exactly ... . getSingleResult (); The code above, for instance, could create a backup at c:\backup ... backup"); backupQuery.setParameter("target", "backup"); backupQuery. getSingleResult (); When a string | |
Setting and Tuning of JPA Queries The Query and TypedQuery interfaces define various setting and tuning methods that may affect query execution if invoked before a query is run using getResultList or getSingleResult . Result Range (setFirstResult, setMaxResults) The setFirstResult and setMaxResults methods enable | |
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 | |
Error 363 - Failed to read value of inverse relationship.receivedMessages using reflection (error 363) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:723 ... .objectdb.o.QRR.b(QRR.java:187) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:716) ... 31 ... .setParameter("name", name). getSingleResult (); } catch (PersistenceException ex) { ex.printStackTrace | |
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)   | |
Criteria Query results in a NoResultException instead of returning object()])); return em.createQuery(criteria). getSingleResult (); which evaluates to the query: SELECT $1 FROM ... .objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:620) at org.jboss.seam.security.management.picketlink ... = em.createQuery(queryStr) .setParameter("identityObjectName", obj.getName()) . getSingleResult | |
javax.persistence.NonUniqueResultException. getSingleResult () or TypedQuery. getSingleResult () is executed on a query and there is more than one result ... , to be marked for rollback. See Also: Query. getSingleResult () TypedQuery. getSingleResult () Since: JPA 1.0 | |
javax.persistence.NoResultException; javax.persistence.NoResultException Thrown by the persistence provider when Query. getSingleResult () or TypedQuery. getSingleResult () is executed on a query and there is no result to return. This exception ... . See Also: Query. getSingleResult () TypedQuery. getSingleResult () Since: JPA 1.0 Public Constructors | |
javax.persistence.StoredProcedureQuery have been defined by the stored procedure. When getResultList and getSingleResult are called ... processing getResultList or getSingleResult . When executeUpdate is called on a StoredProcedureQuery ... getResultList or getSingleResult . The hasMoreResults method can then be used to test for further results | |
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 | |
JPA - ExceptionInInitializerError when creating EntityManager.setParameter("name", "SMTP"). getSingleResult (); port = emailSettings.setParameter("name", "Port"). getSingleResult (); from = emailSettings.setParameter("name", "EMAILFROM"). getSingleResult ... (1). getSingleResult ();   | |
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 | |
how to query by properties of onetomany relations? (Error 990).QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:610) f.bars ... ; System.out.println("Count: " + query. getSingleResult ());   ... .JpaQuery. getSingleResult (JpaQuery.java:620) The query hint is set in the code | |
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 | |
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 | |
Object comparation never matches", authentication.getPrincipal()). getSingleResult (); According to ObjectDB explorer, the record is stored as ... )" on getSingleResult PhoneNumber contains exactly 2 fields. So I'm sure that both objects are same | |
Merge Issue: Attempt to reuse an existing primary key value A a", A.class). getSingleResult (); Assert.assertEquals(1, a.list ... ("select a from A a", A.class). getSingleResult (); Assert | |
Left join fetch behaviour doesn't retrieve children?; MyEntity myEntity = query. getSingleResult ();   ... ; MyEntity.class); MyEntity myEntity = query. getSingleResult (); // Ok my em is now closed | |
javax.persistence.Query getSingleResult () Execute a SELECT query that returns a single untyped result. Return: the result Throws | |
javax.persistence.TypedQuery back See Also: Stream getResultList () Since: JPA 2.2 X getSingleResult () Execute a SELECT query | |
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 | |
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 | |
Issue with cascade delete & add/remove; .setMaxResults(1). getSingleResult ();   ... ; . getSingleResult ()).intValue();   ... '") . getSingleResult ()).intValue | |
Online Backup degrades responsiveness..createQuery("objectdb backup", Thread.class); Thread backupThread = backupQuery. getSingleResult ... = em.createQuery("objectdb backup", Thread.class); Thread backupThread = backupQuery. getSingleResult ... for x ms every 1MB Thread backupThread = backupQuery. getSingleResult (); backupThread.join | |
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 | |
InternalException using 2.3.7_12. getSingleResult (JpaQuery.java:716) at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) at sun ... $DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:310) at $Proxy56. getSingleResult (Unknown |