org.postgresql.util.PSQLException: ERROR: column user0_.id does not exist - Hibernate

后端 未结 6 2149
野性不改
野性不改 2021-02-05 02:47

I have a model class that is mapped to a postgres database using hibernate. My model class is:

@Entity
@Table(name=\"USER\")
public class User {

    @Id 
    @G         


        
6条回答
  •  情书的邮戳
    2021-02-05 03:33

    Try Dropping the table from pg admin console (drop table schema_name.table_name)and make sure your entity class is proper annotated.For example @Table(name = "table_name", schema = "schema_name") on entity class

提交回复
热议问题