23
My primary key entity looks like below
@GeneratedValue(strategy= GenerationType.TABLE)
private Long id;
When I run, I get the error
could not get or update next value;nested exception is org.hibernate.exception.SQLGrammerException:could not get or update next value
but when I just change to
@GeneratedValue
private Long id;
no error is thrown. I want to generate unique primary key per table on oracle db.