Exception in thread "main" org.hibernate.MappingException
2014-06-06 23:43
483 查看
Exception in thread "main" org.hibernate.MappingException: Could not determine type for: String, at table: table1, for columns: [org.hibernate.mapping.Column(name)]
问题原因:User.hbm.xml文件中的type指的是Hibernate中的string类型,而不是java中的String类型
解决办法:将xxx.hbm.xml文件中所有的type的String类型全部改为string。
问题原因:User.hbm.xml文件中的type指的是Hibernate中的string类型,而不是java中的String类型
解决办法:将xxx.hbm.xml文件中所有的type的String类型全部改为string。
相关文章推荐
- Exception in thread "main" org.hibernate.MappingException: Unknown entity: com.mao.PersonSet
- Exception in thread "main" org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of
- Exception in thread "main" org.hibernate.AnnotationException: List/array has to be annotated with an
- Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured!
- Exception in thread "main" org.hibernate.HibernateException: Connection cannot be null when 'hiberna
- Exception in thread "main" org.hibernate.HibernateException: save is not valid without active transa
- Exception in thread "main" org.hibernate.HibernateException: Access to DialectResolutionInfo cannot
- Exception in thread "main" org.hibernate.TransientObjectException: object references an unsaved tran
- Exception in thread "main" org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token:
- Exception in thread "main" org.hibernate.InvalidMappingException: Could not pars
- Exception in thread "main" org.hibernate.MappingException: Unknown entity: XXX
- Exception in thread "main" org.hibernate.MappingException: Unknown entity:
- Exception in thread "main" org.hibernate.MappingNotFoundException: resource: com.xzhl.user.model/Stu
- Exception in thread "main" org.hibernate.QueryException: illegal attempt to dereference collection
- Exception in thread "main" org.hibernate.SessionException: Session is closed!
- Exception in thread "main" org.hibernate.InvalidMappingException: Unable to read XML
- 关于hibernate中的错误:Exception in thread "main" org.hibernate.hql.internal.ast.QuerySyntaxException: tb_e
- 学Hibernate报:Exception in thread "main" org.hibernate.LazyInitializationException: could not initiali
- 异常处理系列:Exception in thread "main" org.hibernate.HibernateException: Javassist Enhancement failed:cn.
- Exception in thread "main" org.hibernate.MappingException: invalid configuration