Hi,
Here's my structure:
http://img247.imageshack.us/img247/2557/hudsvj5.jpg
I have mapped HudItemConfig like so:
Code:
[CompositeId(0)]
[KeyManyToOne(1, Name = "Hud", Column = "HudId", ClassType = typeof(MCHud))]
[KeyManyToOne(2, Name = "HudItem", Column = "HudItemId", ClassType = typeof(MCHudItem))]
My Hud is mapped like so:
Code:
[Set(0, Table = "HudItemConfigs", Inverse = true)]
[Key(1, Column = "HudId")]
[OneToMany(2, ClassType = typeof(MCHudItemConfig))]
I would like to be able to save and commit the only the Hud, but with this mapping I have to iterate through each HudItemConfig, save, and commit.
I understand that moving the "Inverse=True" to the other side would solve my problem, but unfortunately due to the circumstances I dont think that KeyManyToOne has one of those.
Is there any change I can get save/commit for the Hud only without the need to iterate through all HudItemConfigs?
Thanks!