-->
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.  [ 7 posts ] 
Author Message
 Post subject: Database-managed row versioning?
PostPosted: Thu Jun 02, 2005 4:06 am 
I was wondering how to go about using database row versioning (eg SQL Server timestamp column). After beating my head against the <version> tag for I while, I realised that's for NH managed row versioning - is there any way I can get NH to honour the database-assigned version?

Cheers,
Sam.


Top
  
 
 Post subject:
PostPosted: Thu Jun 02, 2005 5:05 pm 
Senior
Senior

Joined: Thu Jun 02, 2005 5:03 pm
Posts: 135
Location: Paris
I'll second that query - it's something I'm looking for as well...

Symon.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 03, 2005 3:21 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Created NH-305.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 03, 2005 7:59 pm 
Senior
Senior

Joined: Thu Jun 02, 2005 5:03 pm
Posts: 135
Location: Paris
Thanks Sergey!

Cheers,

Symon.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 10:56 pm 
The hibernate solution to this appears to be: "Do another fetch on the database and compare the field in question". Obviously not as efficient or elegant as the framework doing it for you.


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

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
If I understand correctly, then the difference is that the DataBase update the <version>
So, to use this feature, we just need to tell NHibernate to not update it...

Am I right ?

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 08, 2005 10:52 pm 
Yes, but NHibernate also needs to do an optimistic concurrency check using the supplied value.


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.