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: ISession.GetSessionImplementation() - a usage question
PostPosted: Mon Jul 07, 2008 10:13 am 
Newbie

Joined: Thu Jan 31, 2008 10:32 am
Posts: 1
Hi guys,

We are working on a large NHibernate based, N-Tier structured project.

I've recently discovered the method GetSessionImplementation() on the ISession, which returns an ISessionImplementor. I couldn't find much documentation on this interface, but it seem to contain very useful methods such as IsDirty, IsSaved etc.

I wanted to ask if it is considered good practice to use the ISessionImplementor methods in the application code (in the DAL layer only) - for example, when I need to know if an entity object in newly created, to get an entity identifier, to check if an entity object is dirty etc ?

I'll be grateful for any reply and any more information you can give about this interface and recommendation on how to use it.

Many thanks!
Chen.


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.