Valid 1Z0-898 Dumps shared by ExamDiscuss.com for Helping Passing 1Z0-898 Exam! ExamDiscuss.com now offer the newest 1Z0-898 exam dumps, the ExamDiscuss.com 1Z0-898 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1Z0-898 dumps with Test Engine here:
An entity person is mapped to a table PERSON and has a collection-valued persistence field otherUsedNames that stores names used by a person. The otherUsedNames field is mapped to a separate table called NAMES. Which code fragment correctly defines such field?
Correct Answer: D
Explanation/Reference: CollectionTable Specifies the table that is used for the mapping of collections of basic or embeddable types. Applied to the collection-valued field or property. Example: @Entity public class WealthyPerson extends Person { @ElementCollection @CollectionTable(name="HOMES") // use default join column name Reference: javax.persistence, Annotation Type CollectionTable http://docs.oracle.com/javaee/6/api/javax/persistence/CollectionTable.html Incorrect: Not B: No such thing as @ElementTable in Java. not C: SecondaryTable specifies a secondary table for the annotated entity class. Specifying one or more secondary tables indicates that the data for the entity class is stored across multiple tables.