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:
The developer has modeled student interests as a set <String>: @ Entity public class Student { @ Id int student Id; string name; @ ElementaryCollection Set <String> Interests; .. . } The developer wants the values of this set to be stored using a column named student_interests. Select the item below that accomplishes this task:
Correct Answer: A
Explanation/Reference: Example of a ElementCollection relationship to a basic value annotations[edit] @Entity public class Employee { @Id @Column(name="EMP_ID") private long id; ... @ElementCollection @CollectionTable( name="PHONE", joinColumns=@JoinColumn(name="OWNER_ID") ) @Column(name="PHONE_NUMBER") private List<String> phones; ... } Reference: Java Persistence/ElementCollection http://en.wikibooks.org/wiki/Java_Persistence/ElementCollection