hibernate map java Long to MySQL BIGINT error

后端 未结 2 1066
别跟我提以往
别跟我提以往 2021-01-02 09:30

i have a table with id field type BIGINT in MySQL

in hibernate object, i use java Long type for this field

but when run program, it throw exception: Ex

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 10:08

    Does it help if you add a columnDefinition like columnDefinition = “bigint(20)″ to your mapping parameters?

提交回复
热议问题