Representation of a FK backing for a Map. This class is used where you have a 1-N and the tables are not joined via a link table, instead using a FK. There are 2 possible uses here
- bidirectional - where the owner has a Map of (key,value), and the key/value has an owner. In this case the key/value class will have an owner field which can be updated directly
- unidirectional - where the owner has a Map of (key,value), but the key/value knows nothing about the owner. In this case the key/value class has no owner field. In this case the column in the key/value table has to be updated directly.
In both cases the value class will have a field that represents the key, and so the user must specify a 'key mapped-by="..."' attribute to denote which field is the key, or a 'value mapped-by="..."' to denote which field is the value.
@version $Revision: 1.43 $