-->
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: Misfeature or operator error? Query.getReturnTypes failure
PostPosted: Sun Dec 07, 2003 9:09 pm 
Newbie

Joined: Mon Sep 01, 2003 9:48 pm
Posts: 17
Hi all,

Wondering if anyone is familiar with this behavior:

Code:
query1 = "select from obj in class xxx.Login"
query2 = "select obj.customer.elements from obj in class xxx.Login where obj.id=xxx"
...
String query = param1;
Query q = s.createQuery(query);
Type[] returnTypes = q.getReturnTypes();


query1 works, query2 fails with "could not resolve property: elements of: xxx.Customer". It's dying in the query parser.

Any suggestions on a generalized solution that would provide for both forms of query are appreciated!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 07, 2003 9:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Do you really have a collection named "customer"??


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.