i think u are trying to do manual insert like inserting sample data! For this u need to update the creation script in Derby like below:

CREATE TABLE ABC(column1 INT GENERATED BY DEFAULT AS...