Below is my code
String query="select w.statusCode,w.updateTime,s.statusCodeValue from WebsiteAvailability w,StatusCodes s where w.statusCode=s.statusCode and w.url=:sel";
String selUrl="www.google.com";
list=session.createQuery(query).setParameter("sel",selUrl).list();
The problem is in my HQL query in 'where' condition w.url=? it is taking.I checked it in server log and it is taking ? instead of selUrl value.Please help me.Here I am using hibernate so I used entities,properties instead of tables,column names. Thank you.