-->
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.  [ 3 posts ] 
Author Message
 Post subject: Exclude column from update statement
PostPosted: Mon Jun 06, 2005 7:18 pm 
Is there a way to exclude a particular column from being part of the update statement that nhibernate creates? Is it a many to one column that is needed to traverse to get other values but I need to disable it from being written when other values are written.


Top
  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 10:33 pm 
Regular
Regular

Joined: Mon May 16, 2005 2:15 pm
Posts: 59
I think update=false on the property tag will do it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 07, 2005 7:37 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
If you are talking about <many-to-one>, then just make sure that Cascade=None (or any other expect Save/Update).

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


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

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.