1Z0-898 Exam Questions
63 real 1Z0-898 exam questions with expert-verified answers and explanations. Page 2 of 2.
- Question #53
The department entity has a unidirectional One To Many relationship to the employee entity. The developer wants to model this relationship as a java.util.map such that the key of m...
- Question #54
The developer wants to override the default mappings for an embeddable class Address used by the customer entity. The Address class is defined as follows: @Embeddable public class...
- Question #55
An application has two entities, Department and Employee, and there is a one-to-many relationship between them. The application has the following query: SELECT d FROM Department d...
- Question #56
An application creates a TypedQuery object to perform a query, and sets the query object's flush mode by calling setFlushMode (FlushModeType.commit). The query is executed within a...
- Question #57
A developer needs to include a set of managed classes in a persistence unit. Which two solutions are correct? (Choose two.)
- Question #58
Consider the following web application: Here MyEntity1.class and MyEntity2.class are annotated with @Entity and MyEmbeddable1- class and MyEmbeddable2-class are annotated with @Emb...
- Question #59
Consider a persistence application with following entity: @Entity Public class MyEntity { @Column (name = "FIELDA_COLUMN") int fieldA; int fieldB; int fieldC; int fieldD; An orm.xm...
- Question #60
A developer wants to write a type-safe Criteria API query. Which two of the following statements true about Criteria query roots? (Choose two)
- Question #61
Which of the following Criteria query snippets demonstrates the correct way to create and execute strongly typed queries? Assume that cb references an instance of the CriteriaBuild...
- Question #62
A developer is writing an application with three java Persistence API entities: order, customer, and Address. There is a many-to-one relationship between order and customer, and a...
- Question #63
Which one of the following queries selects the customer whose order has the highest total price?
- Question #64
Which cascade option can be specified in a mapping descriptor so that it applies to all relationships in a persistent e unit?
- Question #65
Persistence application locks entity x with a LockModeType. PESSIMISTIC_READ lock type, which statement is true?