org.hibernate.type.NullableType nullSafeGet could not read column value from result set: CONTRIB23_35_; 无法转换为内部表示
我在解决该反常的方式是:
1.依据提醒肯定展现问题的数据类别.(过滤无须要的检验,削减耗费在该问题上的工夫淘宝商城:。看懂反常是主要问题).
2.核查数据库字段类别与POJO类的字段数据类别是否相称.
3.检验数据库字段内的value.
如:你的数据库字段类别为number那么在手动照射POJO时也许你会把它写成int类别这么本身是不曾错的(在你数据库内的值不曾超出 int的长度前).然而由于数据库的字段类别为number那么在测验时或许你会手动插入一些值.而值的长度超出int所能接纳的长度。那么在过程运行时对该字段举行get时就会展现上面的差错。这是其一。
hibernate几个问题
Excel单元格中的回车/换行 Alt+Enter
2008-2-2 9:45:13 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: Unknown column 'tjsaleresu0_.isupdate' in 'field list'
2008-2-2 9:45:13 org.hibernate.event.def.DefaultLoadEventListener onLoad
信息: Error performing load command
org.hibernate.exception.SQLGrammarException: could not load an entity: [ookj.domain.TjSaleResult#293]
--数据库中没有“isupdate”字段
2008-2-2 9:51:42 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 1052, SQLState: 23000
2008-2-2 9:51:42 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: Column 'df' in where clause is ambiguous
————find("select tsr from TjSaleResult tsr, TjItemResult tir where tsr=tir.saleResultId and tir= and df<>1", new Object[]{tir});
————语句中的df不能确定是哪个表的
org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: trackDate of: ookj.domain.TjReagentTrack [from ookj.domain.TjReagentTrack trt where trt.trackStage= and trt.trackDate= and trt.userId= and trt.df<>1]; nested exception is org.hibernate.QueryException: could not resolve property: trackDate of: ookj.domain.TjReagentTrack [from ookj.domain.TjReagentTrack trt where trt.trackStage= and trt.trackDate= and trt.userId= and trt.df<>1]
Caused by: org.hibernate.QueryException: could not resolve property: trackDate of: ookj.domain.TjReagentTrack [from ookj.domain.TjReagentTrack trt where trt.trackStage= and trt.trackDate= and trt.userId= and trt.df<>1]
————问题是配置中:
private static String[][] properties={
{"getReagentTrackId","reagent_trackid","0"},
{"getReagentId","reagentid","1"},
{"getUserId","userid","1"},
{"getGuideBookId","guidebookid","1"},
{"getTrackTime","tracktime","0"}, //这里名称不对
{"trackStage","trackstage","0"},
{"getDf","df","0"}
————还有nd trt.trackDate= 语句中的值有误。
java.lang.ClassCastException: ookj.domain.OokjDateTime
————基本的 类型转换错误
String sql = "from TjReagentTrack trt where trt.trackStage= and trt.trackTime like and trt.userId= and trt.df<>1";
List
ApplicationInstance.getActive().setFocusedComponent(textField_Register);
————Echo2焦点问题
org.springframework.dao.InvalidDataAccessApiUsageException: object references an unsaved transient instance - save the transient instance before flushing: ookj.domain.SmDept; nested exception is org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: ookj.domain.SmDept
Caused by: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: ookj.domain.SmDept
————new了一个新对象,在未保存之前将它保存进了一个新new的对象。
问题1,quartz 1.6 配置