**
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.qtj.model">
<class name="DrinkWaterIndexDataDay" table="QTJ_DrinkWaterIndexDataDay" dynamic-insert="true"
dynamic-update="true">
<id name="id" column="id" type="long">
<generator class="native"></generator>
</id>
<many-to-one name="stationname" column="stationname" lazy="false" class="com.qtj.model.Station" />
<property name="stationtype" column="stationtype" type="int" unique="false" />
<property name="sampletime" column="sampletime" type="java.util.Date" unique="false"/>
<property name="watertemp" column="watertemp" type="double" unique="false"/>
<property name="PH" column="PH" type="double" unique="false"/>
<property name="DO" column="DO" type="double" unique="false"></property>
<property name="turbidity" column="turbidity" type="double" unique="false"/>
<property name="conductivity" column="conductivity" type="double" unique="false"/>
<property name="MnO4" column="MnO4" type="double" unique="false"/>
<property name="NH3N" column="NH3N" type="double" unique="false"/>
<property name="TP" column="TP" type="double" unique="false"/>
<property name="TN" column="TN" type="double" unique="false"/>
<property name="TOC" column="TOC" type="double" unique="false"/>
<property name="flow" column="flow" type="double" unique="false"/>
<property name="velocity" column="velocity" type="double" unique="false"/>
</class>
</hibernate-mapping>**
以上是.hbm.xml映射文件的代码。
eclipse一直对于<hibernate-mapping package="com.qtj.model">这一行报错:
The attribute type is required in the declaration of attribute "cata" for element "set".
之前写的时候没有出现过这样的错误,请问是什么原因,我应该怎么改?