I have a Form class which contains a set of Controls. A Control has a reference back to its Form.
For simplicity I will remove all the other attributes of the classes:
So I am trying to map this properly in my HBM files, but can't get it to create the mapping properly.
My first question is: Is this even possible. I have no problem doing one-way one-to-many mappings, but as soon as I want that Form field in Control I get confused as how to proceed.
Here are my HBMS:
Form:
Here is the Control HBM
Basically, what I want to allow is to have code that can do the following:
At this point I have tried a variety of different things and am out of ideas