Hi its me again :-)
I am a bit confused... I dont get my Many-to-One Mappings work probably.
The case is: Class Order is containing an association to OrderDetails.
now if i try to save the Order with an unsafed OrderDetail i get an exception.
e.g.:
Order ord = new Order...
OrderDetails detail = new OrderDetails...
ord.Details = detail;
session.Save(ord);
...
If i save OrderDetails before, ist working fine. So might there be something wrong in my mapping or is it intend to work like this?
Thx again,
Chris
|