-->
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.  [ 2 posts ] 
Author Message
 Post subject: Object edition status / original values
PostPosted: Wed Aug 15, 2007 8:58 am 
Newbie

Joined: Mon Aug 13, 2007 11:51 am
Posts: 10
Hello,

I'm testing NHibernate to see if it will fit our needs.

In our context, the edition of objects is complex and we need to perform some merge when concurent editing is happening (optimist locking will not fit).

In ADO.NET DataSet, the rows have an edition status (added, modified, deleted, ...), gives it any way to have this information on the objects loaded through NHibernate ? If this status is avaliable (or not), is that possible to have the original object value ? (it means the one which was loaded through NHibernat before any edition).

I've seen some remarks about cache, and cache level 2 but haven't found the way to use that.

Thanks for any help
Bye
Didier


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 10:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Jun 13, 2006 11:29 pm
Posts: 315
Location: Calgary, Alberta, Canada
NHibernate does not manage the entity state. This disadvantage, if one can call it that, comes as a cost to the flexibility NHibernate offers. Namely, it can map to any plain old class; no need for special inheritance from a particular class. The only real requirement is the entity class must have a parameterless default constructor; it can even be private, but it must be there. Since any class can be used as entities, you can implement any type of status management as you see fit.

Second level caches has nothing to do with object status etc.

_________________
Karl Chu


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