@Entity public class User { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) private Long id; }