生成數(shù)據(jù)庫(kù)的表報(bào)錯(cuò)
2015-12-19 18:01:39 org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
2015-12-19 18:01:39 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.4.Final}
2015-12-19 18:01:39 org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
2015-12-19 18:01:39 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
2015-12-19 18:01:39 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
2015-12-19 18:01:39 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
2015-12-19 18:01:39 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: entity.Users.hbm.xml
不知道是什么問題,生成表結(jié)構(gòu)報(bào)錯(cuò),求解!萬分感謝!
2015-12-23
學(xué)習(xí)了
2015-12-19
問題自己解決了,看了《Hibernate初探之一對(duì)多映射》,把hibernate.cfg.xml里的
<mapping resource="entity.Users.hbm.xml"/>
<mapping resource="entity.Students.hbm.xml"/>
改成
<mapping resource="entity/Users.hbm.xml"/>
<mapping resource="entity/Students.hbm.xml"/>
就好了。