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

Moderator: admin

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

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

Post 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.

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

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

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

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

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

Post by dfigueira »

Ok I see your point, thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests