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.OneToMany is used when the map key is a basic type and map value is an entity.
About Question enthuware.oce-jpad.v6.2.586 :
Moderator: admin
-
- Posts: 18
- Joined: Sun Jun 21, 2015 2:56 am
- Contact:
About Question enthuware.oce-jpad.v6.2.586 :
Option 2:
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.586 :
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.
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.
Who is online
Users browsing this forum: No registered users and 63 guests