When I convert my database from Sql Server to MySql, the JPA @GeneratedValue does not work, return null, the code like this:
@Id
@GeneratedValue
@Column(name = "ID", unique = true, nullable = false)
public Integer getId() {
return id;
}
Should I change some properties?