About Question enthuware.oce-jpad.v6.2.523 :
Moderator: admin
-
- Posts: 124
- Joined: Wed Feb 12, 2014 2:44 am
- Contact:
About Question enthuware.oce-jpad.v6.2.523 :
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
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
-
- Site Admin
- Posts: 10102
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.523 :
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.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 4
- Joined: Tue Oct 15, 2013 11:12 am
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.523 :
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"
"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"
-
- Site Admin
- Posts: 10102
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.523 :
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.
-
- Posts: 4
- Joined: Tue Oct 15, 2013 11:12 am
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.523 :
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
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
-
- Site Admin
- Posts: 10102
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.523 :
In that case, yes.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" ?
If metadata complete is true, classes will not be inspected for mapping data.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
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 4
- Joined: Tue Oct 15, 2013 11:12 am
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.523 :
thanks .
Clear now
Clear now
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.523 :
Hi, everyone,
I noticed that in the last option's explanation:
It is because in 8.2.1 of the spec:
I noticed that in the last option's explanation:
I think it should be "the contents of orm.xml are not given ...."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.
It is because in 8.2.1 of the spec:
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.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.
-
- Site Admin
- Posts: 10102
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.523 :
Fixed.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 9 guests