Page 1 of 1

About Question enthuware.oce-jpad.v6.2.586 :

Posted: Sat Apr 08, 2017 2:52 am
by unvector
Option 2:
OneToMany is used when the map key is a basic type and map value is an entity.
Is mentioning of the basic type of map key relevant here? Map key type can be basic, embeddable or entity type. Please correct me if I am wrong.

Re: About Question enthuware.oce-jpad.v6.2.586 :

Posted: Sun Apr 09, 2017 9:24 pm
by admin
Yes, the overall explanation does mention that the map key and the map value independently can each be a basic type, an embeddable class, or an entity.

The code in the question uses basic type in map value and entity in map key. That is why the comment under option 1 is trying to explain that if you had basic type in map key and entity in map value, this option would have been valid.