It a Persistence application locks entity x with a pessimistic lock, which statement is true?
Consider a persistence application with the following orm.xml:

What will be the effect of the above orm.xml?
A developer is creating an entity which is mapped to a table that has a primary key constraint defined on two character columns and would like to use mapping defaults as much as possible to simplify the code.
Which two mapping options can be chosen? (Choose two.)
Given the following stateless session bean implementation classes:

Assuming no other transaction-related metadata, what are the transaction attributes on methodB, and methodC respectively?
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 CriteriaBuilder interface and em references an EntityManager instance.
A developer wants to model the grades for a student as a Map<course, integer>. Assume that Student and Course are entitles, and that grades are modeled by integers.
Which of the following two statements are correct? (Choose two)
Entity lifecycle callback methods may be defined in which three classes? (Choose three)