Which one of the following queries selects the customer whose order has the highest total price?
A. CriteriaBuilder cb = ... Criteria Query cq = cb.create Query (Customer.class); Root c = cq.from(Customer.class); Join o = c.join(Customer .orders); cq.select(c).distinct(true); Subquery sq = cq.subquery(Double.class); Root subo = cq.correlate(o); sq.select(cb.max(subo.get(Order_.totalPrice))); cq.where(cb.equal(o.get(Order_.totalPrice), cb.all(sq)));An application has two entities, parson and Address.

The application calls the DeletePersonsByStatus named query. Which of the following is true?
A. The person entities are removed, but NOT their related address entities.FooBean and BarBean are both EJB 3.0 stateless beans with container-managed transaction demarcation. All business methods in FooBean have transaction attribute REQUIRED, and all business methods in BarBean have transaction attribute REQUIRED_NEW. The business method foo in FooBean invokes the Business method bar in BarBean.
Given:
10.
Public class BarBean {
11.
public void bar () {
12.
throw new RuntimeException ("unexpected error . . . ");
13.
}}
Which is true about the method of invocation assuming execution reaches line 12?
A. FooBean.foo method receives javax.ejb.EJBException.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.xml is packaged in the application with the following contents:

Which two of following statement are true. (Choose two)
A. fieldA is mapped to column FIELDAAn application uses an application-managed entity manager. Which of the following is NOT true?
A. The application may specify whether the scope of the persistence context is extended.Which statement is true about the @OrderColumn annotation?
A. If mime is not specified, it defaults to the foreign key column.A developer wrote an entity class with the following method:
Private static Logger logger = Logger.getLogger ("myLogger");
@PrePersist
@PreUpdate
Public void doA ()
{ Logger.info ("A");
}
@PostPersist
@PostUpdate
Public void doB ()
{ logger.info ("B");
}
What will the log message contain when an application does the following?
1.
Begins a transaction
2.
Creates the entity
3.
Persists the entity
4.
Commits the transaction
5.
Begins the entity data
6.
Modifies the entity data
7.
Merges the entity
8.
Commits the second transaction
A. A A B BAn application has three entities: the mapped superclass person class entity, and the parent and child entities, which are subclasses of person. The application has created four entity Instances:
-Person1 is a Person entity with a primary key of 50
-Parent1is a Parent entity with a primary key of 100
-Child1 is a chi id entity with a primary key of 400
-
Child2 is a child entity with a primary key of 600
Caching has been enabled in the persistence unit, the persistence provider supports caching, and none of entities have the Cacheable annotation applied, or a cacheable XML element in persistence.xml.
The application executes the following code:
Cache cache = . . . ;
Cache.evict(person.class)
Assume there is no concurrent activity involving the cache. Which two statements are correct? (Choose two)
A. Only person1 will be removed from cache.A developer wants to model the grades for a student as a Map
Which of the following two statements are correct? (Choose two)
A. The developer can model the grades as an element collection in the Student entity.Consider the following web application: Here MyEntity1.class and MyEntity2.class are annotated with @Entity and MyEmbeddable1-class and MyEmbeddable2-class are annotated with @Embeddable. MyPU is container managed. Which of the following represents set of classes considered managed by MyPU?

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-898 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.