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

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: 8239
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin » Wed Jul 23, 2014 10:24 am

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

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: 8239
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin » Fri Feb 05, 2016 9:52 pm

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

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: 8239
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin » Sat Feb 06, 2016 1:44 am

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 » Sat Feb 06, 2016 1:48 am

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

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: 8239
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin » Fri Jul 14, 2017 12:02 am

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 2 guests