So i want to map a dictionary of the type IDictionary<CLASS, int> in my class called Parent
No fuz so i start on it and get to this:
<map
name="Class"
table="test_class"
cascade="all-delete-orphan" >
<key column="ParentId" />
<index-many-to-many class="assembly.CLASS, assembly" />
<element type="Int32" column="Amount" />
</map>
up to here no problem, but
now my CLASS uses a composite key, and thats where the trouble comes in,
i can't manage to map that.
the class uses a composite id, that has been put in the class CLASSIdentifier and it consists out of a strings and an int, call it name and version.
Any1 know how to deal with that? i tried it using composite-index but it doesnt seem to work that way
Now i know some people will say dont use composite keys, and i must say i agree, but its out of my hands, that class has been developed by another programmer.
|