In postgress the keyword user is reserved so add the annotation @Table and give to user another name like adding _user @Table(name= "_user") class User{}
@Table(name= "_user") class User{}