About transaction

forum_thread

Optimistic locking failure

Optimistic locking failure: I am using a Semaphore to force this execution of concurrents transactions T1 and T2 that cause parallel updates to A/B but it does not throw an OptimisticLockException and roll back. #1 2012-04-30 16:02 Optimistic locking failure: I am using a Semaphore to force this execution of concurrents transactions T1 ...

 
forum_thread

Will Entire JPQL Supported by ObjectDb?

Hi,     I am new to Object Db. I have worked on JPA + Hibernate with Oracle database. Just want if i remove the service layer of application and replace that with JPA + ObjectDB -would this work ? I mean all the JPA related code which is written for Hibernate will work fine with ObjectDb+ JPA - do i need to change some sort of code. If there is a change needed please let me know. Is Transaction management taken care here ? Thanks in Advance , Jana ... If there is a change needed please let me know. Is Transaction management taken care here ? Thanks in Advance , ...

 
api-jpa

merge(entity)

Merge the state of the given entity into the current persistence context.(Method of javax.persistence.EntityManager)

 
tutorial

Spring MVC JPA Tutorial - NetBeans Project

Opening a Spring MVC JPA Maven web application project in the NetBeans IDE.... Note: To run the application on GlassFish - change the transaction type from RESOURCE_LOCAL to JTA in the persistence.xml ...

 
forum_thread

null pointer exception in objectdb-2.4.4_06

I have the following stack trace.  Is this a null ptr in our code or in the object db code? ... our code or in the object db code? Failed to commit transaction:  (error 613) at ...

 
forum_thread

Persisting collection where members are subclasses

OK, I have a number of classes which are all subclasses of Entry (e.g., Folder, Link, Book). In the Folder class, there is a @OneToMany Map<String, Entry> children If I store something in that map which is an Entry, then I can persist just fine. But if I try to put any of the subclasses into the map, then I get  ... javax.persistence.RollbackException Failed to commit transaction: Attempt to persist a reference to a non managed ...

 
api-jpa

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.(Exception of JPA)

 
api-jdo

postDirty(event)

Invoked whenever a persistent instance is first made dirty, during an operation that modifies the value of a persistent or transactional field.(Method of javax.jdo.listener.DirtyLifecycleListener)

 
api-jpa

javax.persistence.QueryTimeoutException

Thrown by the persistence provider when a query times out and only the statement is rolled back.(Exception of JPA)

 
api-jdo

setDetachAllOnCommit(flag)

Sets the detachAllOnCommit setting.(Method of javax.jdo.PersistenceManager)