1Z0-898
Oracle
Java Platform Enterprise Edition 6 Java(R) Persistence
API Developer Certified Expert

A. The person entities are removed, but NOT their related address entities.
B. The person entities, and all their related address entities, are removed.
C. The DeletePersonsByStatus named query is ill-formed, and will be rejected by the
persistence provider.
D. The named query will fall.
Answer:
B
QUESTION:
54
An application uses optimistic locking by defining version attributes in its entity classes.
The application performs a bulk update of the entities using a JPQL query. Which of the
following is correct?
A. The persistence provider will ensure that the version value in each table is updated.
B. The persistence provider will create a new transaction for the bulk update.
C. An OptimisticLockException will be thrown by the persistence provider.
D. The value of the Version attributes of the updated entitles should be also be explicitly
updated by the query.
Answer:
A
Reference:
(topic: optimistic locking, second
paragraph)
QUESTION:
55
A named query that sets an exclusive pessimistic on the entities returned by the query
by
setting
the
NamedQuery
lockMode
element
to
LockModeType.PESSIMISTIC_FORCE_INCREMENT.
The
application
starts
transaction and executes the query. Which of the following statements is correct about
the entities returned by the query?


You've reached the end of your free preview.
Want to read all 7 pages?
- Fall '20
- developer