-->
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: Simple select on QueryOver -> Could not determine member XXX
PostPosted: Wed Jun 15, 2011 7:55 pm 
Newbie

Joined: Wed Jun 15, 2011 7:48 pm
Posts: 1
Hi,

Maybe I missed something critical but this simple select over QueryOver raises "Could not determine member from u" exception:

var query = Session.QueryOver<User>();
var res = query.Select(u => u).List();

where User is an entity type.

So I can`t select overall type used in the QueryOver generic definition?
I`m using this select because in my repository class I have methods like XXX(Expression<T,bool> where, Expression<T,T> select) and an overload XXX(Expression<T,bool> where) which passed 'u=>u' as the select parameter value to the base method.

Should I control this situation and don`t add the Select method call in this case?

Thanks in advance.


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.