If a Persistence application locks entity x with a LockModeType.OPTIMISTIC_FORCE INCREMENT lock type, which statement is true?
A. The Persistence application must increment the version value prior to locking the entity.A JavaEE application is packaged as follows.

Which of the following is true for a portable JavaEE application?
A. This is an invalid application. A JavaEE application cannot have more than one persistent with same name.Which two of the following statements are true of embeddable classes? (Choose two)
A. An embeddable class must not be used to represent the state of another embeddable class.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?
A. Only the current transition may modify or delete the entity instances.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. MANDATORY, MANDATORY, and MANDATORYGiven the following entity classes:
@Entity
@cacheable (true)
Public class A { . . . }
@Entity
@cacheable (false)
Public class B { . . .}
@Entity
Public class C { . . . }
If the shared-cache-mode element of persistence.xml is set to ENABLE _SERVICE, which entities are cached when using a persistence provider that supports caching?
A. A onlyThe department entity has a unidirectional OneToMany relationship to the employee entity. The developer wants to model this relationship as a java.util.map such that the key of map is true employee name. The primary key of the Employees entity is empId, an integer.
Which of the following is correct?
A. @OneToMany (targetEntity = Employee.class) @MapKeyClass (string.class) map employees;If a Persistence application locks entity x with a pessimistic lock, which statement is true?
A. The Persistentprovider will lock the database row(s) that correspond to all persistent fields of properties of an instance, including element collections.Which cascade option can be specified in a mapping descriptor so that it applies to all relationships in a persistent e unit?
A. cascade allThe Contact Information embeddable class contains address information as well as a reference to a phone entity. The ContactInformation class is defined as follows:
@Embeddable public class ContactInformation
{ String street;
String city;
@OneToOne Phone phone;
}
The developer wants to use this class in an Employee entity, but override the default name of the foreign key to the Phone entity. Which of the code segments shows how to do this correctly?
A. @Entity public class Employee { @Id int empId; @AssociationOverride (name = empInfo.phone", joinColumn = @JoinColumn) (name = "INFO_FK")) ContactInformation empInfo; }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.