1Z0-898.pdf - Oracle 1Z0-898 Java Platform Enterprise Edition 6 Java(R Persistence API Developer Certified Expert http\/killexams.com\/exam-detail\/1Z0-898

1Z0-898.pdf - Oracle 1Z0-898 Java Platform Enterprise...

This preview shows page 1 - 3 out of 7 pages.

1Z0-898 Oracle Java Platform Enterprise Edition 6 Java(R) Persistence API Developer Certified Expert
Image of page 1
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?
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 7 pages?

  • Fall '20
  • developer

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture