0

What is the equivalent of @GeneratedValue annotation in spring-data-jdbc.

I'm using springboot with dependency of spring-data-jdbc and I want to autoincrement my primary key's value but using my code and not updating my database to do autoincrement. In spring-data-jpa you have the annotation @GeneratedValue but how to do this in spring-data-jdbc? Please explain with code if possible

27th Apr 2023, 9:22 AM
Krishna Kumar
Krishna Kumar - avatar
1 Answer