1Z0-898 · Question #57
1Z0-898 Question #57: Real Exam Question with Answer & Explanation
The correct answer is B. Place the class files in the root of the persistence unit. D. Place the class files in any jar on the class path that is included in the persistence unit.. What Persistent Managed Classes Does This Persistence Unit Include? You can specify the persistent managed classes associated with a persistence unit by using one or more of the following: The annotated managed persistence classes contained in the root of the persistence unit. Th
Question
Options
- APlace the class files in the orm.xml file.
- BPlace the class files in the root of the persistence unit.
- CPlace the class files in any mapping file that is included on the class path.
- DPlace the class files in any jar on the class path that is included in the persistence unit.
Explanation
What Persistent Managed Classes Does This Persistence Unit Include? You can specify the persistent managed classes associated with a persistence unit by using one or more of the following: *The annotated managed persistence classes contained in the root of the persistence unit. The root of the persistence unit is the JAR file or directory, whose META-INF directory contains the persistence.xml file. To exclude managed persistence classes, add an <exclude-unlisted- classes> element to the persistence unit. *<mapping-file> element: specifies one or more object-relational mapping XML files (orm.xml *<jar-file> element: specifies one or more JAR files that will be searched for classes. *<class> element: specifies an explicit list of classes.
Community Discussion
No community discussion yet for this question.