Online Access Free 1Z0-898 Practice Test
Exam Code: | 1Z0-898 |
Exam Name: | Java EE 6 Java Persistence API Developer Certified Expert Exam |
Certification Provider: | Oracle |
Free Question Number: | 63 |
Posted: | Sep 07, 2025 |
Persistence application locks entity x with a LockModeType. PESSIMISTIC_READ lock type, which statement is true?
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
The developer wants to override the default mappings for an embeddable class Address used by the customer entity.
The Address class is defined as follows:
@Embeddable public class Address (
private String street;
private String city;
private String country;
. . .
)
Assume that NO mapping descriptor is present. Which code segment below shows the correct way to override the default mapping for address?
A developer wants to write a type-safe Criteria API query. Which two of the following statements true about Criteria query roots? (Choose two)