Nhibernate hasmany not updating
This exception is telling us we’re trying to save an object, but it references another object that isn’t saved.
I'll try to follow your advice and get rid of the trigger.ILog = Get Logger() Private Shared Function Get Logger() As log4net. We can infer that this means cascading is turned off for this relationship. Essentially, whenever Hibernate issues an SQL INSERT or UPDATE for an entity which has defined generated properties, it immediately issues a select afterwards to retrieve the generated values.Properties marked as generated must additionally be non-insertable and non-updateable.