A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
Joined: Aug 27, 2003
May 10, 2010 00:02:33
Is there a default locking if we don't use locking explicitly in Toplink? If yes, is it pessimistic or optimistic.
Joined: Oct 01, 2007
May 10, 2010 07:32:32
The default is not locking in TopLink and JPA. You should configure either optimistic locking or pessimistic locking.
Normally optimistic locking is recommended for web applications, but it depends on your locking requirements.
Blog:Java Persistence Performance
I agree. Here's the link:
subject: Toplink locking
Is EJB is a solution
how to cache objects MANUALLY
Toplink witth JPA vs Toplink API
Oracle Objects JDBC vs Hibernate/Toplink
"exists" Clause on JPQL
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014