A developer wants to implement an association relationship between CarModel and
CarManufacturer. Every car model is produced by a single manufacturer and every manufacturer
produces many car models. While in this application it is essential to quickly determine the
manufacturer of a model it is NOT necessary to determine which models a manufacturer
produces. Given these requirements, which is an appropriate solution?
A.
In CarModel class, declare an attribute of type CarManufacturer and annotate it with
@OneToMany.
B.
In CarModel class, declare an attribute of type CarManufacturer and annotate it with
@ManyToOne.
C.
In CarManufacturer class, declare an attribute of type CarModel and annotate it with
@OneToMany.
D.
In CarManufacturer class, declare an attribute of type Collection<CarModel> and annotate it
with @OneToMany.
E.
In CarModel class, declare an attribute of type Collection<CarManufacturer> and annotate it
with @ManyToOne.