I have a special requirement for a mapping that I can't found how to do after more than 10 hours of "Googling". I will try to explain here to see if anyone can help.
I have these tables:
![Image](http://corba.com.br/private/img/DER_ACTIVATION_E492.jpg)
What I would like to map to the objects as follow:
1- The first level class represents the first table
"Equipment" what have one Map attribute that I need to use the OperationName as the key (here is the problem).
2- The second level class in the map, what represents the table
"Operations", have a List o commands and command are mapped on another class (third). But here, I need to order the List according the field CommandOrder from the COMMANDS table. (It's ok if I need to move this field to the n:m table, but not the first one.)
Then, the main problem for me is the first item. What I can do to map the field from a chield table to be a key of the Map on a many-to-many relation?