There is no need to set columnDefinition="serial".
This should work for you: @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Integer getId()