bad value for type long: - Postgresql, Hibernate, Spring

后端 未结 4 717
忘掉有多难
忘掉有多难 2021-02-07 00:29

I wanna store an entity(a String + an image) in PostgresQL using Spring MVC and Hibernate Here is my table. The image is supposed to be the type of oid.

CREATE T         


        
4条回答
  •  礼貌的吻别
    2021-02-07 00:46

    when I created the table the column "name" happened to be the first. That's not good. Id must be the first column. If I change the order of columns it works fine...

提交回复
热议问题