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 4554

Entity lifecycle callback methods may be defined in which three classes? (Choose three)
 

Option A

A.    Embedded classes
 

Option B

B.    Entity classes
 

Option C

C.    Abstract classes
 

Option D

D.    Entity listener classes
 

Option E

E.    Mapped superclasses
 

Option F

F.    Concrete non-entity superclasses
 

Correct Answer B,D,E
Description Update Date and Time 2016-03-07 10:08:25

============================================================================

Question ID 4555

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
 

Option A

A. A
A
B B
 

Option B

B. A B
A
B
 

Option C

C. A
B
B
A
B
 

Option D

D. The application will throw an exception because multiple lifecycle callback annotations applied to a single method.
 

Correct Answer B
Description Update Date and Time 2016-03-07 10:09:18

============================================================================