GIAC
GSSP-JAVA · Question #62
You work as a Software Developer for BlueTech Inc. You create code using EJB 3.0. You want to ensure that each new record is checked for validation before it is inserted into the database. Which of…
The correct answer is D. PrePersist. See the full explanation below for the reasoning.
Question
You work as a Software Developer for BlueTech Inc. You create code using EJB 3.0. You want to ensure that each new record is checked for validation before it is inserted into the database. Which of the following callback methods will you use to write the logic for validation?
Options
- APostUpdate
- BPreUpdate
- CPostLoad
- DPrePersist
How the community answered
(27 responses)- A4% (1)
- B4% (1)
- C11% (3)
- D81% (22)
Community Discussion
No community discussion yet for this question.