1.这个则是hibernate.cfg.xml文件的头信息..一般拷贝下面这段到hibernate.cfg.xml文件的头部就会有提示..

 

<!DOCTYPE hibernate-configuration PUBLIC
          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

2.还有一个就是*.hbm.xml文件的提示信息:需要报下面这段拷贝到xml文件的头部即可.

<?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">