| Exam Code/Number: | 1Z0-898Join the discussion |
| Exam Name: | Java EE 6 Java Persistence API Developer Certified Expert Exam |
| Certification: | Oracle |
| Question Number: | 63 |
| Publish Date: | Aug 19, 2026 |
|
Rating
100%
|
|
An entity person is mapped to a table PERSON and has a collection-valued persistence field otherUsedNames that stores names used by a person. The other used Names field is mapped to a separate table called NAMES. Which code fragment correctly defines such field?
The developer wants to write a portable criteria query that will order the orders made by customer James Brown according to increasing quantity. Which one of the below queries correctly accomplishes that task?
Given the following stateless session bean implementation classes:
Assuming no other transaction-related metadata, what are the transaction attributes on methodB, and methodC respectively?
A developer needs to include a set of managed classes in a persistence unit. Which two solutions are correct? (Choose two.)
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?