최신Oracle Java EE 6 Java Persistence API Developer Certified Expert - 1Z0-898무료샘플문제
문제1
A developer has created a deep entity class hierarchy with many polymorphic relationships between entitles. Which inheritance strategy, as defined by the inheritanceType enumerated type, will be most performed in this scenario?
A developer has created a deep entity class hierarchy with many polymorphic relationships between entitles. Which inheritance strategy, as defined by the inheritanceType enumerated type, will be most performed in this scenario?
정답: A
문제2
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 LEFT JOIN FETCH d. employees
WHERE d.name = : name
After receiving the results of the query, the application accesses the returned department's Employee entities stored in the Department.employees collection-valued attribute.
All caching has been turned off in the application.
Which statement is true?
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 LEFT JOIN FETCH d. employees
WHERE d.name = : name
After receiving the results of the query, the application accesses the returned department's Employee entities stored in the Department.employees collection-valued attribute.
All caching has been turned off in the application.
Which statement is true?
정답: B
문제3
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?
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?
정답: D
설명: (KoreaDumps 회원만 볼 수 있음)
문제4
Which one of the following queries selects the customer whose order has the highest total price?
Which one of the following queries selects the customer whose order has the highest total price?
정답: C
문제5
A developer wants to write a type-safe Criteria API query. Which two of the following statements true about Criteria query roots? (Choose two)
A developer wants to write a type-safe Criteria API query. Which two of the following statements true about Criteria query roots? (Choose two)
정답: C,D
설명: (KoreaDumps 회원만 볼 수 있음)
문제6
A user entity is in a one-to-many relationship with a Book entity. In other words, a developer reach the collection of books that a user instance myUser has by using the path expression-"myuser books".
A developer wants to write a Java Persistence query that returns all users that have only two books.
Which two are valid queries that return this information? (Choose two.)
A user entity is in a one-to-many relationship with a Book entity. In other words, a developer reach the collection of books that a user instance myUser has by using the path expression-"myuser books".
A developer wants to write a Java Persistence query that returns all users that have only two books.
Which two are valid queries that return this information? (Choose two.)
정답: A,C
문제7
If a Persistence application locks entity x with a pessimistic lock, which statement is true?
If a Persistence application locks entity x with a pessimistic lock, which statement is true?
정답: B
설명: (KoreaDumps 회원만 볼 수 있음)