Joined: Fri Dec 12, 2008 12:57 pm Posts: 1
|
Hello,
I was searching this forum ang tried google for solution ti that problem:
I have one .NET class that is mapped to 4 tables. Different class properties are mapped in different tables using <JOIN></JOIN>.
If I change value in one property and run Session.Update(obj); a SQL UPDATE is run for all 4 tables. Is there any way to configure nHibernate run the UPDATE statements only on those tables that have to be updated (only tables that are storing changed properties)?
I have triggers on each table.
I want to avoid run triggers if the update for particular table doesn't change anything.
Looking forward for answer and Merry Chistmas!
|
|