ObjectDB Database Search

1-20 of 20 results

jakarta.persistence.StoredProcedureQuery.executeUpdate()

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery int executeUpdate () Return the update count of -1 if there is no pending result or if the first result is not an update count. The provider will call execute on the query if needed. Returns: the update count or -1

DELETE Queries in JPA/JPQL

DELETE queries are executed using the executeUpdate method: int deletedCount = em. createQuery ("DELETE FROM Country"). executeUpdate (); A TransactionRequiredException is thrown if no transaction is active. If successful, the executeUpdate method returns the number of objects that were deleted

jakarta.persistence.TypedQuery

) explains how to use TypedQuery . Public Instance Methods int executeUpdate () Execute an update or delete

Date field Index is corrupted due to time change

. executeUpdate (JpaQuery.java:776) at com.objectdb.o.QRP.L(QRP.java:251) at com.objectdb.o.QRP.T(QRP ... ;   at com.objectdb.jpa.JpaQuery. executeUpdate (JpaQuery.java:776)       ... ;  q. executeUpdate ();             em

Not able to update records

query when no transaction is active (error 611) at com.objectdb.jpa.JpaQuery. executeUpdate (JpaQuery ... ()). executeUpdate ();   And called method is as follows private String createUpdateQuery ... surrounding your executeUpdate with em.getTransaction().begin() to start the transaction and em

Question about modification

;       int numeroObjetosModificados = consulta. executeUpdate ();       ... = consulta. executeUpdate ();                     ... . executeUpdate ();                         em

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

; em.createQuery("delete from Street s"). executeUpdate ();         em.createQuery("delete from Location l"). executeUpdate ();        

Cannot save or update entity on Spring App

("..."). executeUpdate () 0; } } While the fetching methods work, there are two huge problems: the persist ... .setParameter(s, map.get(s)); boolean que = q. executeUpdate () 0; em.getTransaction().commit(); em.clear(); em

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

Strange behaviour with ORDER BY and IN

up...         em.createQuery("delete from Location l"). executeUpdate

Multiple inputs not supported on WHERE ?

;at com.objectdb.jpa.JpaQuery. executeUpdate (JpaQuery.java:739) ~[objectdb-2.9.4.jar:na]   

Updating Entities

(); modifyTo. executeUpdate (); Main.paygradeDB.getTransaction().commit(); System.out.println

java.lang.UnsupportedOperationException

", License.class); query.setParameter(1, id); int changes = query. executeUpdate

Unable to execute update query

(QRR.java:247) at com.objectdb.o.QRR.f(QRR.java:153) at com.objectdb.jpa.JpaQuery. executeUpdate

Using ObjectDB with JDBC (in similar way with JPA 2)

Using JDBC, I can use a String to create the schema of a table: String sql = "CREATE TABLE REGISTRATION " + "(id INTEGER not NULL, " + " first VARCHAR(255), " + " last VARCHAR(255), " + " age INTEGER, " + " PRIMARY KEY ( id ))"; stmt = conn.createStatement(); stmt. executeUpdate (sql); I want

ArrayIndexOutOfBoundsException on flush

.OBC.onObjectDBError(OBC.java:1485) at com.objectdb.jpa.JpaQuery. executeUpdate (JpaQuery.java:737 ... :151) at com.objectdb.jpa.JpaQuery. executeUpdate (JpaQuery.java:722) ... 40 more The code ... FROM ExecutionGraph g"); query. executeUpdate (); query = em.createQuery("DELETE FROM

Blocked by find

.OBC.onObjectDBError(OBC.java:1485) at com.objectdb.jpa.JpaQuery. executeUpdate (JpaQuery.java:737 ... .QRR.g(QRR.java:232) at com.objectdb.o.QRR.b(QRR.java:151) at com.objectdb.jpa.JpaQuery. executeUpdate ... .containerId = :containerId"); query.setParameter("containerId", containerId); query. executeUpdate (); em

GC overhead limit exceeded

. executeUpdate (JpaQuery.java:722) 2) [ObjectDB 2.3.2_04] Unexpected exception (Error 990) Generated by Java ... ) at com.objectdb.o.QRR.b(QRR.java:151) at com.objectdb.jpa.JpaQuery. executeUpdate (JpaQuery.java:722

Negative snapshot user count

:232) at com.objectdb.o.QRR.b(QRR.java:151) at com.objectdb.jpa.JpaQuery. executeUpdate (JpaQuery.java ... .objectdb.o.QRR.b(QRR.java:144) at com.objectdb.jpa.JpaQuery. executeUpdate (JpaQuery.java:684) at rbccm

UPDATE statemen crash when i put the WHERE clause.

) . executeUpdate () ; updateEm.getTransaction().commit() ; System. out .println(em.createQuery( "select n