-->
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: error as cannot resolve property in hql querry
PostPosted: Tue Dec 30, 2008 6:29 am 
Newbie

Joined: Tue Dec 30, 2008 5:51 am
Posts: 1
hi all, i am using the following hql querry and each time the error comes as:
could not resolve property: account of: ReportInventory [select acc.name,acc.code,ri.status,DATE_FORMAT(ri.updatedAt,'%d-%b-%y') from ReportInventory as ri ,Account as acc where acc.code =ri.account.id and acc.webmart.id=ri.webmart.id and ri.updatedBy != upper('System') and ri.status in ('LIVE','ROLLBACK') and ri.webmart.id=101


String queryString="select acc.name,acc.code,ri.status,DATE_FORMAT(ri.updatedAt,'%d-%b-%y') from ReportInventory as ri ,Account as acc where acc.code =ri.account.id and acc.webmart.id=ri.webmart.id and ri.updatedBy != upper('System') and ri.status in ('LIVE','ROLLBACK') and ri.webmart.id="+webmart.getId();[/code]


Top
 Profile  
 
 Post subject: Re
PostPosted: Fri Jan 02, 2009 1:19 am 
Beginner
Beginner

Joined: Wed Nov 26, 2008 1:02 am
Posts: 22
HI,

i think the problem is this in your query,just check the name of property,whether it exists in ReportInventory pojo?

--->"ri.account.id "

hope it solves,dont forget to rate me,

regards


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 02, 2009 9:51 am 
Beginner
Beginner

Joined: Wed Apr 18, 2007 6:17 pm
Posts: 49
Location: Dominican Republic
Hello,

If you could post the mappings, we can help you better,

regards


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.