根据实际情况进行修改,主要2处,注释的位置<!-- 把catalog="platform"删掉 -->,<!-- 替换为native -->
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN">
<!-- Generated 2016-8-5 17:22:01 by Hibernate Tools 3.4.0.CR1 -->
<!-- 把catalog="platform"删掉 -->
<!-- 替换为native -->
</id></property> </property></property></property></key></set></key></set></class></hibernate-mapping>