mammen wrote:
--- SOURCE ---
public IProduct[] findByCategory(String catid, String locale)
throws DataAccessException {
List prodlist = this.getHibernateTemplate().find("from productdetails");
IProduct[] products = (IProduct[])prodlist.toArray();
return products;
}
Uhm, isn't an object name missing, here? If you write "from productdetails" you are assuming there is an entity "productdetails"... shouldn't it rather be something like the following (nb: since you don't include mappings I have to guess the name of your entities!)
"from Category cat join cat.productdetails where cat.id=?"
with catId bound to the id you are receiving as a param?