-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Updating particular table instead of all in mapped object
PostPosted: Fri Dec 12, 2008 1:39 pm 
Newbie

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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.