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

Moderator: admin

Post Reply
unvector
Posts: 18
Joined: Sun Jun 21, 2015 2:56 am
Contact:

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

Post 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.

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests