我乃尘世小书童
2016-11-28 15:39
十一月 28, 2016 3:39:07 下午 org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
十一月 28, 2016 3:39:07 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.4.Final}
十一月 28, 2016 3:39:07 下午 org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
十一月 28, 2016 3:39:07 下午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
十一月 28, 2016 3:39:07 下午 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
十一月 28, 2016 3:39:07 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
十一月 28, 2016 3:39:07 下午 org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
十一月 28, 2016 3:39:08 下午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: Students.hbm.xml
你那个不是错误信息吧,只是一些加载信息什么的吧,这个是正常的啊。要真的错了的话,应该告诉你什么原因以及在哪个位置出错。
你的配置文档没配错把。。Students.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-11-28 14:27:43 by Hibernate Tools 3.5.0.Final -->
<hibernate-mapping>
<class name="books.Book" table="BOOK">
<id name="id" type="java.lang.Integer">
<column name="ID" />
<generator class="native" />
</id>
<property name="booksName" type="java.lang.String">
<column name="BOOKSNAME" />
</property>
</class>
</hibernate-mapping>
Hibernate初探之单表映射
74810 学习 · 793 问题
相似问题