pejvan wrote:
unfortunately, I need to have a dictionary in a dictionary, for efficient access to the data.
So isn't there any way to do that with Hibernate?
pejvan, why did you reject the provided solution and state that it won't work because of efficiency? In truth the provided solution should be just as efficient (or close enough to be irrelevant) to what you had requested. You will still have a dictionary with a containing dictionary. The access methods would be the same. Your hash would be on the same objects.
I think you dismissed the provided answer way too fast. If there is another reason besides efficiency, then maybe your answer makes sense. Otherwise, I would recommend trying the given solution.