HIBERNATE 报 Association references unmapped class
来源:互联网 发布:酷客网络代刷网 编辑:程序博客网 时间:2024/06/10 07:05
[main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect
Exception in thread "main" org.hibernate.MappingException: Association references unmapped class: com.habuma.spitter.domain.Comment
at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2399)
at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2678)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:66)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1177)
at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:803)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:128)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:91)
Exception in thread "main" org.hibernate.MappingException: Association references unmapped class: com.habuma.spitter.domain.Comment
at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2399)
at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2678)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:66)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1177)
at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:803)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:128)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:91)
at com.habuma.spitter.utils.CreateTable.main(CreateTable.java:10)
查看类和文件没有任何错误,经过几番检查终于找到了问题
有一个空格在配置类的过程中。 去掉这个空格就好了。
0 0
- HIBERNATE 报 Association references unmapped class
- Hibernate异常:Association references unmapped class
- Hibernate 异常:Association references unmapped class
- hibernate.MappingException: Association references unmapped class
- : Association references unmapped class
- Hibernate异常Hibernate 异常:Association references unmapped class
- Association references unmapped class错误
- 关于Association references unmapped class错误
- Association references unmapped class的解决方法
- Association references unmapped class 错误分析
- hibernate5 报错org.hibernate.boot.MappingException: Association [XX] references an unmapped entity
- 解决 Unknown entity class 或 Association references unmapped class
- MappingException提示Association references unmapped class错误的解决方法
- java MappingException提示Association references unmapped class错误的解决方法
- 【解决】MappingException提示Association references unmapped class错误
- org.hibernate.MappingException: An association from the table tuser refers to an unmapped class: Role
- hibernate错误:An association from the table ....... refers to an unmapped class
- Hibernate:关于An association from the table refers to an unmapped class
- 设计包含min函数的栈
- java Hibernate 配置 SqlServer数据库 timestamp乐观锁注意事项
- docker push到远程dock hub 403 access deny
- 工厂方法模式
- 哈希(Hash)与加密(Encrypt)的基本原理、区别及工程应用
- HIBERNATE 报 Association references unmapped class
- android ScrollView中嵌套GridView,ListView只显示一行的解决办法
- IOS 实现3D Touch在tableView的简单应用(swift版)
- 策略模式
- 利用线上数据提升移动app质量
- Callable接口解析
- 抽象工厂方法模式
- 数据科学家必备工具有哪些?
- 面试:字符串:产生括号