Page 1 of 1

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

Posted: Wed Jul 23, 2014 4:27 am
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

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

Posted: Wed Jul 23, 2014 10:24 am
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.

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

Posted: Fri Feb 05, 2016 8:01 pm
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"

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

Posted: Fri Feb 05, 2016 9:52 pm
by admin
Did you read the explanation and the discussion above? It answers exactly what you are asking.

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

Posted: Sat Feb 06, 2016 1:28 am
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 :)

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

Posted: Sat Feb 06, 2016 1:44 am
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.

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

Posted: Sat Feb 06, 2016 1:48 am
by satyen
thanks .
Clear now

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

Posted: Thu Jul 13, 2017 2:30 pm
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.

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

Posted: Fri Jul 14, 2017 12:02 am
by admin
Fixed.
thank you for your feedback!
Paul.