Hibernate 3.3 Mapping Exception：namequery not known
===

**in the Product.hbm.xml I declared that 

    <query name="searchProduct">
    <![CDATA[SELECT p FROM Product p where p.pid<?]]>
    </query>

and in the Test calss 
Query nameQuery = session.getNamedQuery("searchProduct");
this line throws a hibernate.mappingException:namequery not known**