posted 14 years ago
Hello,
I have a Company entity which has a Map property called "companyValues".
private Map<Competence, Integer> companyValues;
The companyValues property uses a Competence entity as its key. Competence is another mapped entity in the system.
Could you explain how I would create this mapping in the Company mapping?
This is the Competence, which is just an id and a name for now.
And this is the Company with the companyValues mapping.
Is the companyValues property in the Company mapping correct like this? Or will this result in an <Integer, Integer> Map? I mean, will Hibernate understand that I need the entire Competence object as the key and return a <Competence, Integer> Map or will it return a <Integer, Integer> Map with the COMPETENCE_ID as the first integer?
Thanks!