Page 1 of 1

About Question enthuware.oce-jpad.v6.2.528 :

Posted: Mon Jul 16, 2018 6:19 pm
by dfigueira
Within validateCreate(), calls to EntityManager methods can be made.
shouldn't be correct as well?

From the explanation:
In general, the lifecycle method of a portable application should not invoke EntityManager or Query operation(...)
Although not portable can actually be invoked.

Re: About Question enthuware.oce-jpad.v6.2.528 :

Posted: Tue Jul 17, 2018 3:43 am
by admin
Yes, there is a bit of ambiguity in the question from this perspective. Ideally, you should not use EntityManager in validateCreate but it will compile (and probably) fine.
Whether you should consider this a correct answer or not from the exam perspective is up to you. I would not select it because there are only two correct options and the other two are better than this one.

HTH,
Paul.

Re: About Question enthuware.oce-jpad.v6.2.528 :

Posted: Tue Jul 17, 2018 1:46 pm
by dfigueira
Ok I see your point, thanks.