八月 13, 2013 6:11:05 下午 org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
八月 13, 2013 6:11:05 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.1.Final}
八月 13, 2013 6:11:05 下午 org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
八月 13, 2013 6:11:05 下午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
八月 13, 2013 6:11:05 下午 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
八月 13, 2013 6:11:05 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
八月 13, 2013 6:11:05 下午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: com/luojia/zwc/domain/User.hbm.xml
八月 13, 2013 6:11:05 下午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: com/luojia/zwc/domain/Review.hbm.xml
八月 13, 2013 6:11:05 下午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: com/luojia/zwc/domain/Topic.hbm.xml
八月 13, 2013 6:11:05 下午 org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
Exception in thread "main" org.hibernate.MappingException: Association references unmapped class: com.luojia.zwc.domain.Topic
at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2517)
at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2803)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:69)
at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1603)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1362)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1747)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1798)
at com.luojia.zwc.test.HibernateTest.main(HibernateTest.java:11)
hibernate.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>