Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hi,
I'm using NH 1.2 , and i'm trying to do : session.Lock(entity,LockMode). The problem i'm having , is that there's no way I can find to check if the entity has already been attached to the session.
I found an IsSaved method, but it's in SessionImpl class. When i reattach an already attached entity it throws an error ( cause it just couldn't fail silently? ). The solution for now is a try{}catch{} - and leaving it like that would suck.
Another question I have is : How can I force NH to not load a subentity from cache. (like Client.ClientDetails - ClientDetails does not have the update-ed information. )
.