-->
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: org.springframework.orm.hibernate3.HibernateQueryException:
PostPosted: Fri Aug 24, 2007 9:43 pm 
Newbie

Joined: Fri Aug 17, 2007 9:47 am
Posts: 2
Location: USA
Hi,

I am facing problem with join using hibernate.
My exception is



org.springframework.orm.hibernate3.HibernateQueryException: could not
resolve property: p of:
com.vecna.project.vtrack2.data.persistent.Project [select p.id, p.name.
p.contract_num, p.status, pm.status, pm.accomplishments,
pm.upcoming_tasks, pm.issues, pm.month_of, p.pm from
com.vecna.project.vtrack2.data.persistent.Project p left join
p.pmWeeklyProgress as pm where pm is null or pm.month_of = :monthOf];
nested exception is org.hibernate.QueryException: could not resolve
property: p of: com.vecna.project.vtrack2.data.persistent.Project
[select p.id, p.name. p.contract_num, p.status, pm.status,
pm.accomplishments, pm.upcoming_tasks, pm.issues, pm.month_of, p.pm from
com.vecna.project.vtrack2.data.persistent.Project p left join
p.pmWeeklyProgress as pm where pm is null or pm.month_of = :monthOf]
org.hibernate.QueryException: could not resolve property: p of:
com.vecna.project.vtrack2.data.persistent.Project [select p.id, p.name.
p.contract_num, p.status, pm.status, pm.accomplishments,
pm.upcoming_tasks, pm.issues, pm.month_of, p.pm from
com.vecna.project.vtrack2.data.persistent.Project p left join
p.pmWeeklyProgress as pm where pm is null or pm.month_of = :monthOf]


my query is as follows:

String query =
" select p.id, p.name, p.contract_num, p.status, pm.status,
pm.accomplishments, "+
" pm.upcoming_tasks, pm.issues, pm.month_of, p.pm "+
" from project p left join pm_monthly_summary pm on
p.id=pm.project_id and pm.month_of=?";


any help?

thanks
nagesh


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.