About lock

31-40 of 181Refresh
Forum
18

explorer locks local database in readonly mode

hi, my current use case is: execute unit test, verify results in explorer. my problem, i have to close the explorer before every run, and open it again after the tests are done. this slows down the whole process. i opened the database in readonly mode, but the file will be locked by the explorer
Issue
18

File lock exception on odb$

below. No other process had a lock on the file, especially as the server had just been rebooted
Forum
18

Optimistic lock

Hello When I get an optimistic lock on an object, refresh(), start trans and persist?  Will the changes made to the object before the violation be retained or must they be duplicated in the retry code?  Assuming it affects only one object.  tia. The exact situation that you describe is unclear
Forum
18

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection
Forum
17

Database is locked when in use

Database is locked when in use
Forum
17

Optimistic Lock Exception With No Concurrency

Optimistic Lock Exception With No Concurrency
JPA Doc
16

javax.persistence.TypedQuery

() Get the current lock mode for the query. Get the current lock mode for the query. Returns: lock mode ... back TransactionRequiredException - if a lock mode has been set and there is no transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException
JPA Doc
15

javax.persistence.PessimisticLockScope

: Serializable, Comparable Defines the values of the javax.persistence.lock.scope property for pessimistic locking. This property may be passed as an argument to the methods of the EntityManager, Query, and TypedQuery interfaces that allow lock modes to be specified or used
JPA Doc
13

find(entityClass, primaryKey, lockMode)

,   LockModeType lockMode ) Find by primary key and lock. Search for an entity of the specified class and primary key and lock it with respect to the specified lock type. If the entity instance is contained in ... if the lock method had been called on the entity. If the entity is found within the persistence
JPA Doc
13

find(entityClass, primaryKey, lockMode, properties)

,   LockModeType lockMode,   Map properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect to the specified lock type. If the entity instance is contained in the persistence context, it is returned from