ObjectDB Database Search

1-50 of 50 results

jakarta.persistence.TransactionRequiredException

Jakarta Persistence (JPA) Class jakarta.persistence. TransactionRequiredException java.lang.Object ... .PersistenceException ∟ jakarta.persistence. TransactionRequiredException Implemented Interfaces ... . Since: Jakarta Persistence (JPA) 1.0 Public Constructors TransactionRequiredException () Constructs a new

jakarta.persistence.TransactionRequiredException.TransactionRequiredException(Exception)

Jakarta Persistence (JPA) Constructor in jakarta.persistence. TransactionRequiredException TransactionRequiredException (    Exception cause ) Constructs a new TransactionRequiredException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TransactionRequiredException.TransactionRequiredException(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence. TransactionRequiredException TransactionRequiredException (    String message ) Constructs a new TransactionRequiredException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TransactionRequiredException.TransactionRequiredException(String,Exception)

Jakarta Persistence (JPA) Constructor in jakarta.persistence. TransactionRequiredException TransactionRequiredException (    String message ,    Exception cause ) Constructs a new TransactionRequiredException exception with the specified detail message. Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TransactionRequiredException.TransactionRequiredException()

Jakarta Persistence (JPA) Constructor in jakarta.persistence. TransactionRequiredException TransactionRequiredException () Constructs a new TransactionRequiredException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManager

. TransactionRequiredException - if there is no transaction and a lock mode other than NONE is specified or ... . TransactionRequiredException - if there is no transaction and a lock mode other than NONE is specified or ... . TransactionRequiredException - if there is no transaction and a lock mode other than NONE is specified or if invoked

Storing JPA Entity Objects

values). A TransactionRequiredException is thrown if there is no active transaction when persist

Detached Entity Objects

an instance of an entity class or it is a removed entity. A TransactionRequiredException is thrown

DELETE Queries in JPA/JPQL

("DELETE FROM Country"). executeUpdate (); A  TransactionRequiredException is thrown

Deleting JPA Entity Objects

is not an instance of an entity class or if it is a detached entity. A TransactionRequiredException

Running JPA Queries

"). executeUpdate (); A TransactionRequiredException is thrown if no transaction is active. On success

UPDATE SET Queries in JPA/JPQL

(); A  TransactionRequiredException is thrown if no transaction is active. On success

Locking in JPA

. A TransactionRequiredException is thrown if there is no active transaction when lock is called because explicit locking

JPA Exceptions

. TransactionRequiredException Exception Class Overview The root of the JPA exception class subtree is: General errors

jakarta.persistence.TypedQuery

and the transaction is rolled back. TransactionRequiredException - if there is no transaction or ... and the transaction is rolled back. TransactionRequiredException - if a lock mode other than NONE has been set ... timeout value set and the transaction is rolled back. TransactionRequiredException - if a lock mode

jakarta.persistence.Query

value set and the transaction is rolled back. TransactionRequiredException ... back. TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or the persistence ... the query timeout value set and the transaction is rolled back. TransactionRequiredException - if a lock

jakarta.persistence.StoredProcedureQuery

value set and the transaction is rolled back. TransactionRequiredException - if there is no transaction ... back. TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or the persistence

jakarta.persistence.TypedQuery.getResultStream()

and the transaction is rolled back. TransactionRequiredException - if a lock mode

jakarta.persistence.TypedQuery.getSingleResult()

back. TransactionRequiredException - if a lock mode other than NONE has been set

jakarta.persistence.TypedQuery.getSingleResultOrNull()

back. TransactionRequiredException - if a lock mode other than NONE has been set

jakarta.persistence.TypedQuery.getResultList()

the query timeout value set and the transaction is rolled back. TransactionRequiredException

jakarta.persistence.StoredProcedureQuery.executeUpdate()

back. TransactionRequiredException - if there is no transaction or the persistence context has not been joined

jakarta.persistence.EntityManager.joinTransaction()

to associate it with the current JTA transaction. Throws: TransactionRequiredException

jakarta.persistence.EntityManager.lock(Object,LockModeType,LockOption...)

call is made. OptimisticLockException - if the optimistic version check fails. TransactionRequiredException

jakarta.persistence.EntityManager.refresh(Object)

- if the instance is not an entity or the entity is not managed. TransactionRequiredException

jakarta.persistence.EntityManager.refresh(Object,Map)

. IllegalArgumentException - if the instance is not an entity or the entity is not managed. TransactionRequiredException

jakarta.persistence.EntityManager.refresh(Object,LockModeType)

call is made. TransactionRequiredException - if invoked on a container-managed entity manager of type

jakarta.persistence.EntityManager.lock(Object,LockModeType)

. TransactionRequiredException - if there is no transaction or if invoked on an entity manager which has not been joined

jakarta.persistence.EntityManager.lock(Object,LockModeType,Map)

. TransactionRequiredException - if there is no transaction or if invoked on an entity manager which has not been joined

jakarta.persistence.EntityManager.getLockMode(Object)

is not a managed entity. TransactionRequiredException - if there is no active transaction or

jakarta.persistence.EntityManager.refresh(Object,LockModeType,Map)

call is made. TransactionRequiredException - if invoked on a container-managed entity manager of type PersistenceContextType

jakarta.persistence.EntityManager.refresh(Object,RefreshOption...)

call is made. TransactionRequiredException - if invoked on a container-managed entity manager of type PersistenceContextType

jakarta.persistence.EntityManager.persist(Object)

another PersistenceException may be thrown at flush or commit time). TransactionRequiredException

jakarta.persistence.EntityManager.merge(T)

- if the instance is not an entity or is a removed entity. TransactionRequiredException

jakarta.persistence.EntityManager.remove(Object)

- if the instance is not an entity or is a detached entity. TransactionRequiredException

jakarta.persistence.EntityManager.find(EntityGraph,Object,FindOption...)

version check fails. TransactionRequiredException - if there is no transaction and a lock mode

jakarta.persistence.EntityManager.flush()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void flush() Synchronize changes held in the persistence context to the underlying database. Throws: PersistenceException - if the flush fails. TransactionRequiredException - if there is no transaction or if the entity manager

jakarta.persistence.EntityManager.find(Class,Object,LockModeType)

fails. TransactionRequiredException - if there is no transaction and a lock mode

jakarta.persistence.EntityManager.find(Class,Object,LockModeType,Map)

call is made. OptimisticLockException - if the optimistic version check fails. TransactionRequiredException

jakarta.persistence.EntityManager.find(Class,Object,FindOption...)

version check fails. TransactionRequiredException - if there is no transaction and a lock mode

jakarta.persistence.Query.getSingleResultOrNull()

back. TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or

jakarta.persistence.Query.executeUpdate()

and the transaction is rolled back. TransactionRequiredException - if there is no transaction or the persistence

jakarta.persistence.Query.getResultList()

value set and the transaction is rolled back. TransactionRequiredException - if a lock mode

jakarta.persistence.Query.getResultStream()

and the transaction is rolled back. TransactionRequiredException - if a lock mode other than NONE has been set

jakarta.persistence.Query.getSingleResult()

back. TransactionRequiredException - if a lock mode other than NONE has been set

Cannot save or update entity on Spring App

because of this: [ObjectDB 2.8.0] javax.persistence. TransactionRequiredException Attempt to run update ... . TransactionRequiredException Attempt to run update query when no transaction is active [PMImpl] (error 611) Apparently Spring

How to Use a SF with extended Persistence Context?

for ObjectManager of com.objectdb.o.WSM@5535f404 - 2 with exception: com.objectdb.o._ TransactionRequiredException

Rollback after commit fail

), the exception is caught, but rollback fails with: javax.persistence. TransactionRequiredException Attempt

Not able to update records

Hi,   I am tring to update the simple object by using Update query by i am getting following exception [ObjectDB 2.4.4_15] javax.persistence. TransactionRequiredException Attempt to run update query when no transaction is active (error 611) at com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

) //[ObjectDB 2.6.9_06] javax.persistence. TransactionRequiredException //Attempt to flush a transaction ... . TransactionRequiredException Attempt to flush a transaction when no transaction is active (error 611) at com ... .9_06] javax.persistence. TransactionRequiredException Attempt to rollback a transaction