org.hibernate.type.NullableType nullSafeGet无法从结果集中读取列值:Numeric Overflow

时间:2016-04-27 12:17:00

标签: java hibernate resultset

Hibernate:
   <id name="A" column="A" type="integer"></id>  
  <property name="B" column="B" type="integer"/>
  <property name ="ID" column="ID" type="string"/>
  <property name="REASON" column="REASON" type="string"/>
  <property name="TEST" column="TEST" type="string"/>
  <property name="C" column="C" type="string"/>
  <property name="UNIT" column="UNIT" type="string"/>   
  <property name="NO" column="NO" type="integer"/>      
  <property name="LIMIT" column="LIMIT" type="string"/>
  <property name="MAX_LIMIT" column="LIMIT" type="string"/>
  <property name="MEASURED_VALUE" column="MEASURED_VALUE" type="string"/>
  <property name="TEST_POINT" column="TEST_POINT" type="string"/>
  <property name="CD" column="CD" type="string"/>
  <property name="AID" column="AID" type="string"/>
  <property name="MID" column="MID" type="string"/>
  <property name="LAST_UPDATE_DT" column="LAST_UPDATE_DT"  /> 

爪哇:

private String ID;
private String MAX_LIMIT;
private String LIMIT;
private Date CREATE_DT;
private Integer A;
private Integer B;
private String C;
private Date LAST_UPDATE_DT;
private String MEASURED_VALUE;
private String MID;
private String ID;
private String REASON;
private String CD;
private Integer NO;
private String TEST;
private String UNIT;
private String TEST_POINT;

错误:

000001c7 IntegerType   I org.hibernate.type.NullableType nullSafeGet could not read column value from result set: A; Numeric Overflow

000001c7 JDBCException W org.hibernate.util.JDBCExceptionReporter logExceptions SQL错误:17026,SQLState:99999 000001c7 JDBCException E org.hibernate.util.JDBCExceptionReporter logExceptions数字溢出

DB:

A NUMBER(12)
B NUMBER(12)
TEST_POINT VARCHAR2(20 Byte)
C VARCHAR2(4 Byte)
TEST VARCHAR2(25 Byte)
UNIT VARCHAR2(15 Byte)
MEASURED_VALUE VARCHAR2(13 Byte)
LIMIT VARCHAR2(13 Byte)
MAX_LIMIT VARCHAR2(13 Byte)
CD VARCHAR2(10 Byte)
AID VARCHAR2(3 Byte)
MID VARCHAR2(10 Byte)
NO NUMBER(3)
CREATE_DT DATE
LAST_UPDATE_DT DATE
ID VARCHAR2(6 Byte)
REASON VARCHAR2(100 Byte)

如何解决错误?

0 个答案:

没有答案