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

Moderator: admin

Post Reply
ramy6_1
Posts: 124
Joined: Wed Feb 12, 2014 2:44 am
Contact:

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

Post by ramy6_1 »

Hello ,

Why you supposed that xml-mapping-metadata-complete is true in this case , and for that you selected option four as correct ?

I think this has to be clear in the question itself

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

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

Post by admin »

The question does not assume that metadata-complete is true. But at the same time it does not assume that metadata-complete is not true. Since you don't know whether it is true or not, you can't say that class files will be "always" be examined.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

satyen
Posts: 4
Joined: Tue Oct 15, 2013 11:12 am
Contact:

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

Post by satyen »

In the explanation section you say
"Note that within a jar file, classes should be stored in their proper directory structure. Here, Account and Person classes are stored correctly as per their package names and so they will be inspected by the container for annotations."

so the Answer should have been "Class files, persistence.xml file, and orm.xml"

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

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

Post by admin »

Did you read the explanation and the discussion above? It answers exactly what you are asking.
If you like our products and services, please help us by posting your review here.

satyen
Posts: 4
Joined: Tue Oct 15, 2013 11:12 am
Contact:

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

Post by satyen »

I read the explanation.

lets say "metadata-complete" is not specified.
Then the answer would have been "Class files, persistence.xml file, and orm.xml" ?
For me regardless of metadata-complete, if the classes are stored correctly they will be inspected... Please correct me .. I am just getting ready for the certificates :)

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

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

Post by admin »

satyen wrote:I read the explanation.

lets say "metadata-complete" is not specified.
Then the answer would have been "Class files, persistence.xml file, and orm.xml" ?
In that case, yes.
For me regardless of metadata-complete, if the classes are stored correctly they will be inspected... Please correct me .. I am just getting ready for the certificates :)
If metadata complete is true, classes will not be inspected for mapping data.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

satyen
Posts: 4
Joined: Tue Oct 15, 2013 11:12 am
Contact:

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

Post by satyen »

thanks .
Clear now

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

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

Post by himaiMinh »

Hi, everyone,
I noticed that in the last option's explanation:
Note that the contents of persistence.xml are not given in the question. Therefore, we do not know whether xml-mapping-metadata-complete is specified or not.
I think it should be "the contents of orm.xml are not given ...."

It is because in 8.2.1 of the spec:
The root element of the persistence.xml file is the persistence element. The persistence
element consists of one or more persistence-unit elements.
The persistence-unit element consists of the name and transaction-type attributes and
the following sub-elements: description, provider, jta-data-source,
non-jta-data-source, mapping-file, jar-file, class,
exclude-unlisted-classes, shared-cache-mode, validation-mode, and properties.
In the orm.xml or xml descriptor, it has entity-mappings, which has a subelement, persistence-unit-defaults, inside which there is an xml-mapping-metadata-complete.

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

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

Post by admin »

Fixed.
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests