WhichEntityManager API will lock entity with a pessimistic lock?
It a Persistence application locks entity x with a pessimistic lock, which statement is true?
If a Persistence application locks entity x with a LockModeType.OPTIMISTIC_FORCE INCREMENT lock type, which statement is true?
Persistence application locks entity x with a LockModeType. PESSIMISTIC_READ lock type, which statement is true?
A user entity is retrieved in a query and stored in an instance variable user. The user entity has a single valued name property that uses the mapping defaults, and a photo property, which is lazily loaded. The application then calls the following method:PersistenceUtil.isLoaded (user);Which two of the following statements are correct?
Given the following entity classes:@Entity@cacheable (true)Public class A { . . . }@Entity@cacheable (false)Public class B { . . .}@EntityPublic class C { . . . }If the shared-cache-mode element of persistence.xml is set to ENABLE _SERVICE, which entities are cached when using a persistence provider that supports caching?