1Z0-898 Exam Questions
63 real 1Z0-898 exam questions with expert-verified answers and explanations. Page 2 of 2.
- Question #53Entity Relationships
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...
OneToMany@MapKeyMap relationshipcollection mapping - Question #54JPA Fundamentals
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...
@AttributeOverridesembeddable overridecolumn mapping@Embeddable - Question #55JPQL
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...
JOIN FETCHeager loadingN+1 problemJPQL fetch join - Question #56EntityManager Operations
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...
FlushModeTypeTypedQuerytransaction flushCOMMIT flush mode - Question #57JPA Fundamentals
A developer needs to include a set of managed classes in a persistence unit. Which two solutions are correct? (Choose two.)
persistence unitmanaged classesclass pathjar deployment - Question #58JPA Fundamentals
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...
persistence unit scopemanaged classes@Entity@Embeddable - Question #59JPA Fundamentals
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...
orm.xmlmapping override@Columnpersistence descriptor - Question #60Criteria API
A developer wants to write a type-safe Criteria API query. Which two of the following statements true about Criteria query roots? (Choose two)
query rootCriteriaQuerytype-safe queryfrom clause - Question #61Criteria API
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...
TypedQueryCriteriaQuerytype-safe queryCriteriaBuilder - Question #62Criteria API
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...
joinCriteriaQuerymulti-entity querypath navigation - Question #63Criteria API
Which one of the following queries selects the customer whose order has the highest total price?
subqueryaggregate functionmax priceCriteriaBuilder - Question #64Entity Relationships
Which cascade option can be specified in a mapping descriptor so that it applies to all relationships in a persistent e unit?
cascade-persistmapping descriptorcascade typespersistence unit - Question #65Advanced Topics
Persistence application locks entity x with a LockModeType. PESSIMISTIC_READ lock type, which statement is true?
pessimistic lockingLockModeTypePESSIMISTIC_READlock upgrade