错误
Query threw SQLException:'49180950926' in column '1'
is outside valid range for the datatype INTEGER. Bind values:[]
Query was:SELECT * from myTable WHERE myData= ?
我的行对象(Java)
@Id
@Column(name="idMyObject")
@GeneratedValue(strategy= GenerationType.IDENTITY)
private Long myData;
Java调用以获取数据
MyDataRow row = mostEm.findNative(MyDataRow.class,
"SELECT * from myTablle WHERE myData= ?")
.setParameter(1, Long.parseLong(myDataString))
.findOne();
SQL行信息
myData bigint(20)
我尝试了多种方法使其正常工作,但我总是遇到上面列出的错误。我不确定确切的方向。