Discussion :: JPA
-
What's true about the following @Entity association between House and Window?@Entitypublic class Window {@Idprivate int winNo;@ManyToOneprivate House aHouse;}@Entitypublic class House {@Idprivate int houseNo;@OneToMany(mappedBy="aHouse")private List
windows; }
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
Explanation :
Be The First To Comment