I am using spring with hibernate in my project.
I am new to springs.
I am getting this exception in browser when i send request to a action class.
org.springframework.orm.hibernate3.HibernateQueryException: unexpected AST node: diet near line 1, column 94 [select productCatNo from ds.ORM.ProductCatSubcat pcs where pcs.productSubcatName=kitchen and diet]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node: diet near line 1, column 94 [select productCatNo from ds.ORM.ProductCatSubcat pcs where pcs.productSubcatName=kitchen and diet]
why this exception coming
my hibernate query is
hibernateTemplate.find("select productCatNo from ProductCatSubcat pcs where pcs.productSubcatName="+top_cat)
where top_cat is a java variable.
thanks,
suresh.k