主题:hibernate配置文件出错救急
请问这是什么错误,我这个文件是自己敲的,这个文件可以自动生成么?怎么生成,谢谢
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-mapping>
<calss name="bean.User" table="userT">
<id name="uid" type="java.lang.String">
<column name="UID"/>
<generator class="native" />
</id>
<property name="uname" type="java.lang.String">
<column name="UNAME" length="20" not-null="true" />
</property>
<property name="upass" type="java.lang.String">
<column name="UPASS" length="50" not-null="true" />
</property>
</calss>
</hibernate-mapping>
编译错误:
Attribute "type" must be declared for element type "property"
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-mapping>
<calss name="bean.User" table="userT">
<id name="uid" type="java.lang.String">
<column name="UID"/>
<generator class="native" />
</id>
<property name="uname" type="java.lang.String">
<column name="UNAME" length="20" not-null="true" />
</property>
<property name="upass" type="java.lang.String">
<column name="UPASS" length="50" not-null="true" />
</property>
</calss>
</hibernate-mapping>
编译错误:
Attribute "type" must be declared for element type "property"