说是映射不成功,可是我有映射,这是我的映射文件:<hibernate-mapping>
    <class name="org.zzh.vo.Customer" table="customer" >
        <id name="customerId" type="java.lang.Integer">
            <column name="customer_id" />
            <generator class="native" />
        </id>
        <property name="custName" type="java.lang.String">
            <column name="cust_name" length="100" not-null="true" />
        </property>
        <property name="password" type="java.lang.String">
            <column name="password" length="100" not-null="true" />
        </property>
        <property name="email" type="java.lang.String">
            <column name="email" length="100" not-null="true" />
        </property>
    </class>
</hibernate-mapping>
在Spring里也有映射:<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.SQLServerDialect
</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>org/zzh/vo/Customer.hbm.xml</value></list>
</property></bean>
所有的映射我都有了,可是为什么还是提示没有映射???????
高手帮忙看一下,谢谢!
还有这个是方法:public boolean findusername(String username, String userpass) { final String HQL="FROM Custormer u where u.custName=? and u.password=?";
String[] hqlParameter=new String[2];
hqlParameter[0]=username;
hqlParameter[1]=userpass;

List list=this.getHibernateTemplate().find(HQL,hqlParameter);

if(list.size()>0){
return true;
}
return false;
}就是到List list=this.getHibernateTemplate().find(HQL,hqlParameter);没法执行下去的!!!