-->
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: Filters don't affect Get and Load methods of ISession
PostPosted: Wed Jul 16, 2008 8:09 am 
Newbie

Joined: Wed Jul 16, 2008 7:59 am
Posts: 2
Location: Kiev
Can anybody tell why ISession methods Get and Load ignore enabled filters in session?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 16, 2008 9:21 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
The goal of these functions is to load an object you know exists, so it would be a bit confusing if you get null or an exception. If you want to "query" you have to use either IQuery or ICriteria.

_________________
--Wolfgang


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 18, 2008 2:54 am 
Newbie

Joined: Wed Jul 16, 2008 7:59 am
Posts: 2
Location: Kiev
ОК, thanks.

It is not obvious
(it is said that filters is powerful feature
but there is no word about such limitations,
because from another point of view -
filters are applied to session and any obtaining information from session
should be filtered accordingly)


It should be present in manuals or books, I suppose.


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.