Sail E0 Webinar
Question
What's true about the following @Entity association between House and Window?@Entitypublic class Window { @Id private int winNo; @ManyToOne private House aHouse;}@Entitypublic class House { @Id private int houseNo; @OneToMany(mappedBy="aHouse") private List windows;}
Options:
A .  It's OneToMany unidirectional association
B .  It's OneToMany bidirectional association
C .  The association owner is the House class
D .  The association owner is the Window class
Answer: Option B





Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers