org.hibernate.MappingException: Could not determine type for: java.lang.string
来源:互联网 发布:java典型编题 编辑:程序博客网 时间:2024/05/19 11:50
唉,纠结很久,看到一个帖子,很管用呀,问题解决了。贴上帖子原文:
http://topic.csdn.net/u/20070403/15/141cfe0c-0682-45de-86e5-c684cd607ef3.html
我的映射文件中是这样写的:
<property
name= "operatorName "
type= "java.lang.String "
column= "operator_name "
length= "10 "
>
</property>
数据库是sybase的,对应数据类型为:varchar(10)。
启动后出现上面的错误,请问是什么原因?谢谢。
org.hibernate.MappingException: Could not determine type for: java.lang.string, for columns: [org.hibernate.mapping.Column(addressip)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
at org.hibernate.mapping.Property.isValid(Property.java:184)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:370)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java:983)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1147)
解决办法:
- org.hibernate.MappingException: Could not determine type for: java.lang.string
- org.hibernate.MappingException: Could not determine type for: String
- 【hibernate】org.hibernate.MappingException: Could not determine type for: String, for columns:
- org.hibernate.MappingException: Could not determine type for 错误
- org.hibernate.MappingException: Could not determine type for
- org.hibernate.MappingException: Could not determine type for
- Caused by: org.hibernate.MappingException: Could not determine type for
- org.hibernate.MappingException: Could not determine type for:
- org.hibernate.MappingException: Could not determine type for: String, at table: Elec_Text, for colum
- org.hibernate.MappingException: Could not determine type for: String, at table: Elec_SystemDDL, for
- org.hibernate.MappingException: Could not determine type for: String 数据类型错误
- Hibernate异常Caused by: org.hibernate.MappingException: Could not determine type for: java.util.Set
- org.hibernate.MappingException: Could not determine type for: java.util.List, at table: user, for...
- org.hibernate.MappingException: Could not determine type for: java.util.Set
- Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table: s
- Hibernat org.hibernate.MappingException: Could not determine type for: java.util.Set
- org.hibernate.MappingException: Could not determine type for: java.util.Set
- org.hibernate.MappingException: Could not determine type for: java.util.Collection, for columns: [org.hibernate.mapping.Column(l
- ARM中MOV与LDR的区别
- MFC ActiveX控件与ATL ActiveX控件的比较
- 请谨记5件事,成为一名快速的学习者
- xmlbean+xmlspy 编辑xml
- 关于用户空间和内核空间
- org.hibernate.MappingException: Could not determine type for: java.lang.string
- Rowboat平台UVC移植
- android学习笔记之layout篇
- 软件开发文档(以太网)
- sql按姓氏笔画排序
- PHP Reflection
- MFC的View子类中判断当前view是否是活动的方法
- Vim 的 tab 设置
- Python类的继承