Feb 23, 2017 Importing from csv, no primary key in csv, auto increment not working. I am trying to import from a csv file some data and not have to create a primary key by combine data within the csv and use the auto-increment but I am doing all of this within the workbench environment. Importing from csv, no primary key in. The JPA specification supports 4 different primary key generation strategies which generate the primary key values programmatically or use database features, like auto-incremented columns or sequences. The only thing you have to do is to add the @GeneratedValue annotation to your primary key attribute and choose a generation strategy.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |