Dmitry, your problem is completely unrelated to this. Your domain model is not defined correctly. At the very least it needs @MapKeyEnumerated on User.socialNetworkProfiles. It is also questionable to map the association this way. However, I pulled your domain model into our test suite to check MapKeyEnumerated handling. That worked for me:
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Dmitry, your problem is completely unrelated to this. Your domain model is not defined correctly. At the very least it needs @MapKeyEnumerated on User.socialNetworkProfiles. It is also questionable to map the association this way. However, I pulled your domain model into our test suite to check MapKeyEnumerated handling. That worked for me: