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

Moderator: admin

Post Reply
dfigueira
Posts: 15
Joined: Thu May 05, 2016 2:50 am
Contact:

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

Post by dfigueira » Mon Jul 16, 2018 6:19 pm

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.

admin
Site Admin
Posts: 8239
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin » Tue Jul 17, 2018 3:43 am

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.
If you like our products and services, please help us by posting your review here.

dfigueira
Posts: 15
Joined: Thu May 05, 2016 2:50 am
Contact:

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

Post by dfigueira » Tue Jul 17, 2018 1:46 pm

Ok I see your point, thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests