-->
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: not calling database on with UniqueResult()
PostPosted: Thu May 14, 2009 3:09 pm 
Newbie

Joined: Mon Aug 20, 2007 1:23 pm
Posts: 2
I'm attempting to hydrate an object from a sql database but it's not ever going to the db watching it in sql profiler.
The session states that the connection is open when I step through it. I've used the same configuration successfully in other projects.


ICriteria criteria = Session.CreateCriteria(typeof(T))
.Add(Restrictions.Eq("myprop", request.myprop));
return criteria.UniqueResult() as T;

Any help debugging would be appreciated.


Top
 Profile  
 
 Post subject: Re: not calling database on with UniqueResult()
PostPosted: Thu May 14, 2009 5:40 pm 
Newbie

Joined: Mon Aug 20, 2007 1:23 pm
Posts: 2
Found the issue, pesky embeddedresource property.


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.