Chat with us

Read online free dumps for Oracle- 1z0-898

Here you can read online questions and answers for Oracle Exam 1z0-898 (Java Platform, Enterprise Edition 6 Java Persistence API Developer Certified Expert Exam ) 100% free...

Question ID 4566

An application that uses container-managed transaction demarcation creates a query within an active transaction and receives a QueryTimeoutException. Which of those scenarios describes what happens to the active transaction?
 

Option A

A.    The statement and the transaction continue.
 

Option B

B.    The query is recreated within the current transaction.
 

Option C

C.    The statement and the transaction are marked for rollback.
 

Option D

D.    The statement is rolled back, but the transaction continues.
 

Correct Answer D
Description
Update Date and Time 2016-03-07 10:19:42

Question ID 4567

The developer has defined the following entity class office:
@Entity
public class Office {
@Id
private int id;
private String name;
@OneToMany
private List<Room> rooms;
}
Which of the following attributes will be in corresponding generated static metamodel class for the rooms’ field?
 

Option A

A.    Public static volatile CollectionAttribute<Room> rooms;
 

Option B

B.    Public static volatile ListAttribute<Room> rooms;
 

Option C

C.    Public static volatile ListAttribute<Office, Room> rooms;
 

Option D

D. Public static volatile SingleAttribute<Room> rooms;
 

Correct Answer C
Description
Update Date and Time 2016-03-07 10:20:14