org.hibernate.Invalid总报这个 MappingException: Could not parse mapping document from resource Student.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 2016-7-11 11:54:54 by Hibernate Tools 3.4.0.CR1 -->
<hibernate-mapping>
<class name="Student" table="STUDENT">
<id name="sid" type="int">
<column name="SID" />
<!--sid的属性初始值为0 -->
<!-- <generator class="assigned" /> -->
<!-- sid的属性值从1开始自动递增-->
<generator class="native"></generator>
</id>
<property name="sname" type="java.lang.String">
<column name="SNAME" />
</property>
<property name="gender" type="java.lang.String">
<column name="GENDER" />
</property>
<property name="birthday" type="java.util.Date">
<column name="BIRTHDAY" />
</property>
<property name="picture" type="java.sql.Blob">
<column name="PICTURE" />
</property>
<!-- <property name="address" type="java.lang.String">
<column name="ADDRESS" />
</property> -->
<component name="address" class="Address">
<property name="aid" column="AID"></property>
<property name="postcode" column="POSTCODE"></property>
<property name="phone" column="PHONE"></property>
<property name="address" column="ADDRESS"></property>
</component>
</class>
</hibernate-mapping>