Reason behind this error is you are doing
1. Auto increment of table id
2. Id which you are incrementing is String
3. And last you are using MySQL database.
@Id
@Column(name = "year_id")
@GeneratedValue(strategy = GenerationType.AUTO)
private int yearId;
Help more people:- Share this link, or comment if you have any suggestion.
No comments:
Post a Comment