If you use the strategy javax.persistence.GenerationType.IDENTITY for @GeneratedValue your table must have an identity generator. This can be done including an AUTO_INCREMENT to your primary key.
Example:
CREATE TABLE Vendor
(
ID int NOT NULL AUTO_INCREMENT,
PRIMARY KEY (ID)
)